summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r--_includes/postmeta.html39
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 %}