diff options
author | Nicolas Kuttler <git@kuttler.eu> | 2015-02-12 18:15:17 +0100 |
---|---|---|
committer | Nicolas Kuttler <git@kuttler.eu> | 2015-02-12 19:01:08 +0100 |
commit | 23d0b1ebd65f423ba8a78ace70cdb150d7be8efe (patch) | |
tree | 190febcc1951063b05455135faabbb125b31a27f /_includes/postmeta.html | |
parent | 9a01c0844418115e152d90793f72dad6a9e86229 (diff) | |
download | irssi.github.io-23d0b1ebd65f423ba8a78ace70cdb150d7be8efe.zip |
Add articles collection
Display optional web address instead of email as article contributors might
not want to see their email address on the www.
Also add an article index page.
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r-- | _includes/postmeta.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/_includes/postmeta.html b/_includes/postmeta.html index 3074fb9..d71b943 100644 --- a/_includes/postmeta.html +++ b/_includes/postmeta.html @@ -2,14 +2,18 @@ <p> <small> Posted by - {% if node.email %} + {% if node.web %} + <a href="{{ node.web }}">{{ node.author }}</a> + {% elsif node.email %} <a href="mailto:{{ node.email }}">{{ node.author }}</a> {% else %} {{ node.author }} {% endif %} - {% assign ordinalize = node.date | date: "%-d" %} - on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html ordinalize=ordinalize %}</sup> - {{ node.date | date: "%Y" }} + {% if node.date %} + {% assign ordinalize = node.date | date: "%-d" %} + on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html ordinalize=ordinalize %}</sup> + {{ node.date | date: "%Y" }} + {% endif %} </small> </p> |