Skip to content

Commit 1da552c

Browse files
committed
fix(article): use loclate_date attribute instead of hardcoding the date format
Fix #552
1 parent 45ebc30 commit 1da552c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/article.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h1>{{ title }}</h1>
115115
{% if article.date %}
116116
<h4>Published</h4>
117117
{% set day = article.date.strftime('%d')|int %}
118-
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
118+
<time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
119119
{% endif %}
120120
{% include '_includes/last_updated.html' %}
121121
{% include '_includes/series.html' %}

0 commit comments

Comments
 (0)