From c2a68cc2a980506b12b9054d5be8e4806fe79c1c Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Tue, 18 Oct 2011 17:25:31 +0200 Subject: Make post's date output configurable via _config.yml, closes #164 A new config variable 'date_format' is introduced in _config.yml. It can either be set to "ordinal" to use the current format or it can be given a string complying to strftime() format identifiers. --- .themes/classic/source/_includes/post/date.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.themes/classic/source') diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index dbfa67ae..3fd702d7 100644 --- a/.themes/classic/source/_includes/post/date.html +++ b/.themes/classic/source/_includes/post/date.html @@ -1,10 +1,11 @@ {% 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' %} -- cgit v1.2.1