diff options
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r-- | _includes/postmeta.html | 9 |
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> |