Better date formatting

This commit is contained in:
Felipe M 2020-02-02 19:01:30 +01:00
parent fb6c85aea5
commit 86f7671ff6
Signed by: fmartingr
GPG key ID: 716BC147715E716F
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
<article class="blog-post center"> <article class="blog-post center">
<p class="text-right float-right"><a href="{{ post|url }}">Read &raquo;</a></p> <p class="text-right float-right"><a href="{{ post|url }}">Read &raquo;</a></p>
<h3 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h3> <h3 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h3>
<div class="info">{{ post.pub_date }}</div> <div class="info">{{ post.pub_date.strftime("%B %d, %Y") }}</div>
</article> </article>
<hr class="light"> <hr class="light">
{% endfor %} {% endfor %}

View file

@ -3,7 +3,7 @@
<article class="blog-post center"> <article class="blog-post center">
<h1 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h1> <h1 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h1>
<div class="info"> <div class="info">
Published on {{ post.pub_date }} Published on {{ post.pub_date.strftime("%B %d, %Y") }}
</div> </div>
{% if include_content %} {% if include_content %}
<div class="content"> <div class="content">