aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_layouts
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-11-03 20:32:38 +0100
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-11-03 20:32:38 +0100
commit987dccee7655a410a2fb1e0f41c35b282b17cbe9 (patch)
treef4924e26e9662a72d7f8e3c16245081cbf727432 /.themes/classic/source/_layouts
parent262eb52bc58df8459ecf87d81627162bd7c3bc65 (diff)
downloadmy_new_personal_website-987dccee7655a410a2fb1e0f41c35b282b17cbe9.tar.xz
my_new_personal_website-987dccee7655a410a2fb1e0f41c35b282b17cbe9.zip
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.
Diffstat (limited to '.themes/classic/source/_layouts')
-rw-r--r--.themes/classic/source/_layouts/page.html2
-rw-r--r--.themes/classic/source/_layouts/post.html2
2 files changed, 2 insertions, 2 deletions
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
<footer>
{% if page.date or page.author %}<p class="meta">
{% if page.author %}{% include post/author.html %}{% endif %}
- {% include post/date.html %}{{ time }}
+ {% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% if page.categories %}{% include post/categories.html %}{% endif %}
</p>{% endif %}
{% unless page.sharing == false %}
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index 251e831d..d3c42e37 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -9,7 +9,7 @@ single: true
<footer>
<p class="meta">
{% include post/author.html %}
- {% include post/date.html %}{{ time }}
+ {% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
</p>
{% unless page.sharing == false %}