From 81e814a3543d9bb5793c427fd6623d89ec505d78 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Tue, 18 Oct 2011 17:39:19 +0200 Subject: Remove unsupported 'updated' flag from _includes/post/date.html Jekyll does not support this value for Page or Post classes. The capture returned an empty Sting, which was always evaluated to true in '{% if updated %}'. --- .themes/classic/source/_includes/post/date.html | 8 +------- .themes/classic/source/_layouts/page.html | 2 +- .themes/classic/source/_layouts/post.html | 6 +++--- 3 files changed, 5 insertions(+), 11 deletions(-) (limited to '.themes/classic/source') diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index 3fd702d7..4fb570d2 100644 --- a/.themes/classic/source/_includes/post/date.html +++ b/.themes/classic/source/_includes/post/date.html @@ -1,13 +1,7 @@ {% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} {% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %} {% capture has_date %}{{ date | size }}{% endcapture %} -{% capture updated %}{{ page.updated }}{{ post.updated }}{% 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 %} diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index 8ba6ec94..7f3b7627 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -15,7 +15,7 @@ layout: default