diff options
| author | Brandon Mathis <brandon@imathis.com> | 2011-09-04 14:18:28 -0500 |
|---|---|---|
| committer | Brandon Mathis <brandon@imathis.com> | 2011-09-04 14:19:16 -0500 |
| commit | 4c21e69093144150c99252ff9c599864408902e5 (patch) | |
| tree | 49fa1b35fedab65167f6b2ad821208aa7289f4d9 /.themes/classic/source/_includes/post | |
| parent | 8c0dd58ee6de37b0a726f72c99dc84beeef0b6d3 (diff) | |
| download | my_new_personal_website-4c21e69093144150c99252ff9c599864408902e5.tar.xz my_new_personal_website-4c21e69093144150c99252ff9c599864408902e5.zip | |
Time metadata for updated pages and posts are now displayed where and when it is appropriate
Diffstat (limited to '.themes/classic/source/_includes/post')
| -rw-r--r-- | .themes/classic/source/_includes/post/date.html | 8 |
1 files changed, 5 insertions, 3 deletions
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' %} -<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate {% if updated %} data-updated="true" {% endif %}>{{ date | ordinalize }}</time> + {% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate {% if updated %} data-updated="true" {% endif %}>{{ date | ordinalize }}</time>{% endcapture %} {% endif %} + {% if was_updated != '0' %} -<time class="updated" datetime="{{ updated | datetime | date_to_xmlschema }}">{{ updated | ordinalize }}</time> -{% endif %} + {% capture updated %}<time class="updated" datetime="{{ updated | datetime | date_to_xmlschema }}">Updated {{ updated | ordinalize }}</time>{% endcapture %} +{% else %}{% assign updated = false %}{% endif %} |
