From 4c21e69093144150c99252ff9c599864408902e5 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sun, 4 Sep 2011 14:18:28 -0500 Subject: Time metadata for updated pages and posts are now displayed where and when it is appropriate --- .themes/classic/source/_includes/article.html | 2 +- .themes/classic/source/_includes/post/date.html | 8 +++++--- .themes/classic/source/_layouts/page.html | 2 +- .themes/classic/source/_layouts/post.html | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) (limited to '.themes/classic') diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index b561fbc7..5cd6fda1 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -6,7 +6,7 @@

{{ page.title | titlecase }}

{% endif %} {% unless page.meta == false %} -

{% include post/date.html %}

+

{% include post/date.html %}{{ time }}

{% endunless %} {% endunless %} diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index bc493138..dbfa67ae 100644 --- a/.themes/classic/source/_includes/post/date.html +++ b/.themes/classic/source/_includes/post/date.html @@ -2,9 +2,11 @@ {% 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 %} {% endif %} + {% if was_updated != '0' %} - -{% endif %} + {% 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 08e056ec..729b48ec 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -15,7 +15,7 @@ layout: default