From 86f7671ff64fb24062a77953e0fcf11257ed56ea Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 2 Feb 2020 19:01:30 +0100 Subject: [PATCH] Better date formatting --- templates/home.html | 2 +- templates/macros/blog.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/home.html b/templates/home.html index 7e943f7..93867bd 100644 --- a/templates/home.html +++ b/templates/home.html @@ -9,7 +9,7 @@

Read »

{{ post.title }}

-
{{ post.pub_date }}
+
{{ post.pub_date.strftime("%B %d, %Y") }}

{% endfor %} diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 89f9457..12abd01 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -3,7 +3,7 @@

{{ post.title }}

- Published on {{ post.pub_date }} + Published on {{ post.pub_date.strftime("%B %d, %Y") }}
{% if include_content %}