Skip to content

Commit

Permalink
fix(article): use loclate_date attribute instead of hardcoding the da…
Browse files Browse the repository at this point in the history
…te format

Fix #552
  • Loading branch information
talha131 committed Jan 19, 2020
1 parent 45ebc30 commit 1da552c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand Down

0 comments on commit 1da552c

Please sign in to comment.