danielmochdotcom

Nikola site for www.danielmoch.com
git clone git://git.danielmoch.com/danielmochdotcom.git
Log | Files | Refs

commit 7828aad28144b9baae0ab2f48e3a980c5a50ba5b
parent db02a3190b11314fdd21bfe76d262b14769d7a97
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 15 Oct 2018 22:17:43 -0400

Normalize date in posts

Diffstat:
Mconf.py | 2+-
Mthemes/djmoch/templates/post.tmpl | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf.py b/conf.py @@ -247,7 +247,7 @@ # Date format used to display post dates. (translatable) # Used by babel.dates, CLDR style: http://cldr.unicode.org/translation/date-time # You can also use 'full', 'long', 'medium', or 'short' -# DATE_FORMAT = 'YYYY-MM-dd HH:mm' +DATE_FORMAT = 'MMMM dd YYYY HH:mm' # Date format used to display post dates, if local dates are used. (translatable) # Used by moment.js: https://momentjs.com/docs/#/displaying/format/ diff --git a/themes/djmoch/templates/post.tmpl b/themes/djmoch/templates/post.tmpl @@ -9,7 +9,7 @@ <h2 class="page-subtitle"> By: {{post.author()}} <br> -{{post.date}} +{{post.formatted_date(date_format) | e}} </h2> {{ post.text() }} {% endblock %}