summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
diff options
context:
space:
mode:
authorNicolas Kuttler <git@kuttler.eu>2015-02-12 13:29:52 +0100
committerNicolas Kuttler <git@kuttler.eu>2015-02-12 13:29:52 +0100
commit0b3a8bb29dc13c0150c374f87e7aa8a6ac1a8a55 (patch)
tree8127d886daaab0ac3c812afe7133699a6b54cfe1 /_includes/postmeta.html
parentdcf06fc9642a41a69bf1f0e8cafeff5a763918ae (diff)
downloadirssi.github.io-0b3a8bb29dc13c0150c374f87e7aa8a6ac1a8a55.zip
Ordinalize without plugin
As the site will be build by github we can't use plugins
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r--_includes/postmeta.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/_includes/postmeta.html b/_includes/postmeta.html
index a44f36d..544ed34 100644
--- a/_includes/postmeta.html
+++ b/_includes/postmeta.html
@@ -10,10 +10,9 @@ possible on github pages (unless built locally and pushed there).
{% else %}
{{ node.author }}
{% endif %}
- {% if node.date %}
- {% assign ordinal=node.date | ordinal %}
- on {{ node.date | date: "%B %-d" }}{% if ordinal != node.date %}<sup>{{ ordinal }}</sup>{% endif %}
- {{ node.date | date: "%Y" }}
- {% endif %}
+
+ {% assign ordinalize=node.date | date: "%-d" %}
+ on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html %}</sup>
+ {{ node.date | date: "%Y" }}
</small>
</p>