Skip to content
Permalink
Browse files
fix(article): use loclate_date attribute instead of hardcoding the da…
…te format

Fix #552
  • Loading branch information
talha131 committed Jan 19, 2020
1 parent 45ebc30 commit 1da552c94775766657f4ee9a0c05e7bcd7f1adf9
Showing 1 changed file with 1 addition and 1 deletion.
@@ -115,7 +115,7 @@ <h1>{{ title }}</h1>
{% if article.date %}
<h4>Published</h4>
{% set day = article.date.strftime('%d')|int %}
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
{% endif %}
{% include '_includes/last_updated.html' %}
{% include '_includes/series.html' %}

0 comments on commit 1da552c

Please sign in to comment.