From 987dccee7655a410a2fb1e0f41c35b282b17cbe9 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Thu, 3 Nov 2011 20:32:38 +0100 Subject: Add custom date format to pages, add 'updated' field again Reverts changes of c2a68cc where I accidentally removed support for 'updated' field, see comments of issue #164 for details. --- .themes/classic/source/_includes/post/date.html | 10 +++++++++- .themes/classic/source/_layouts/page.html | 2 +- .themes/classic/source/_layouts/post.html | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to '.themes') diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index 4fb570d2..ecf1ad71 100644 --- a/.themes/classic/source/_includes/post/date.html +++ b/.themes/classic/source/_includes/post/date.html @@ -2,6 +2,14 @@ {% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %} {% capture has_date %}{{ date | size }}{% endcapture %} +{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %} +{% capture updated_formatted %}{{ page.updated_formatted }}{{ post.updated_formatted }}{% endcapture %} +{% capture was_updated %}{{ updated | size }}{% endcapture %} + {% if has_date != '0' %} - {% capture time %}{% endcapture %} + {% capture time %}{% endcapture %} {% endif %} + +{% if was_updated != '0' %} + {% capture updated %}{% endcapture %} +{% else %}{% assign updated = false %}{% endif %} \ No newline at end of file diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index 7f3b7627..8ba6ec94 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -15,7 +15,7 @@ layout: default