From 53bf0046ea4f3a1dca5ab34e30cdcc989a6b3014 Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Fri, 13 Feb 2015 09:53:21 +0100 Subject: Make meta info entirely optional --- _includes/postmeta.html | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to '_includes/postmeta.html') 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 %} -

- - Posted by - {% if node.web %} - {{ node.author }} - {% elsif node.email %} - {{ node.author }} - {% else %} - {{ node.author }} - {% endif %} +{% if node.author or node.date %} +

+ + Posted + {% if node.author %} + by + {% if node.web %} + {{ node.author }} + {% elsif node.email %} + {{ node.author }} + {% else %} + {{ node.author }} + {% endif %} + {% endif %} - {% if node.date %} - {% assign ordinalize = node.date | date: "%-d" %} - on {{ node.date | date: "%B %-d" }}{% include ordinal.html ordinalize=ordinalize %} - {{ node.date | date: "%Y" }} - {% endif %} - -

+ {% if node.date %} + {% assign ordinalize = node.date | date: "%-d" %} + on {{ node.date | date: "%B %-d" }}{% include ordinal.html ordinalize=ordinalize %} + {{ node.date | date: "%Y" }} + {% endif %} + +

+{% endif %} -- cgit v1.2.3