From 81e814a3543d9bb5793c427fd6623d89ec505d78 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Tue, 18 Oct 2011 17:39:19 +0200 Subject: [PATCH] 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(-) diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index 3fd702d715c..4fb570d2c06 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 8ba6ec9457c..7f3b7627254 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -15,7 +15,7 @@

{% if site.titlecase %}{{ page.title | titlecase }}{% el