diff options
author | Nicolas Kuttler <git@kuttler.eu> | 2015-02-13 09:54:03 +0100 |
---|---|---|
committer | Nicolas Kuttler <git@kuttler.eu> | 2015-02-13 09:54:03 +0100 |
commit | 2b7744e1aa5c356defef1f114e454a872841504b (patch) | |
tree | 57c920e8bc3d51b4b72da239e041d1302af563a3 | |
parent | 57325ebb39dbea991172a09f681a1475b0b75272 (diff) | |
parent | 53bf0046ea4f3a1dca5ab34e30cdcc989a6b3014 (diff) | |
download | irssi.github.io-2b7744e1aa5c356defef1f114e454a872841504b.zip |
Merge branch 'nkuttler' into content
-rw-r--r-- | _includes/postmeta.html | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/_includes/postmeta.html b/_includes/postmeta.html index d71b943..4a4d5b3 100644 --- a/_includes/postmeta.html +++ b/_includes/postmeta.html @@ -1,19 +1,24 @@ {% assign node=include.node %} -<p> - <small> - Posted by - {% 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 %} +{% if node.author or node.date %} + <p> + <small> + Posted + {% if node.author %} + by + {% 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 %} + {% endif %} - {% 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> + {% 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> +{% endif %} |