diff options
author | Nicolas Kuttler <git@kuttler.eu> | 2015-02-12 01:29:15 +0100 |
---|---|---|
committer | Nicolas Kuttler <git@kuttler.eu> | 2015-02-12 01:29:15 +0100 |
commit | 27c911c3ea5bc5c1a0db37003c72dbea3801319c (patch) | |
tree | 74f1988c53af5302c05807c66dbe75beabc64377 /_includes/postmeta.html | |
parent | 50362a666ecfbc15d6beec2a4a89346526ac2e69 (diff) | |
download | irssi.github.io-27c911c3ea5bc5c1a0db37003c72dbea3801319c.zip |
Display meta information about posts
The date will be displayed with an ordinal indicator when available.
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r-- | _includes/postmeta.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_includes/postmeta.html b/_includes/postmeta.html new file mode 100644 index 0000000..a44f36d --- /dev/null +++ b/_includes/postmeta.html @@ -0,0 +1,19 @@ +{% comment %} +This will use the ordinal plugin when it's available. This is not +possible on github pages (unless built locally and pushed there). +{% endcomment %} +<p> + <small> + Posted by + {% if node.email %} + <a href="mailto:{{ node.email }}">{{ node.author }}</a> + {% 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 %} + </small> +</p> |