Skip to content

Commit ee8bcda

Browse files
itrichbitbrain
andauthored
Fix wrong parameter date_format (#66)
* Fix wrong parameter date_format * Fix wrong parameter date_format Co-authored-by: miguel <[email protected]>
1 parent 26f8ea5 commit ee8bcda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_layouts/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h1>recent articles</h1>
2020
{% endfor %}
2121
</div>
2222
{% endif %}
23-
{% if site.date_format %}
24-
{{ post.date | date: site.date_format }}
23+
{% if site.dash.date_format %}
24+
{{ post.date | date: site.dash.date_format }}
2525
{% else %}
2626
{{ post.date | date: "%b %-d, %Y" }}
2727
{% endif %}

_layouts/tag_page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h1 class="post-title">articles tagged with <a class="tag" href="/tag/{{ page.ta
2020
<a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
2121
{% endfor %}
2222
</div>
23-
{% if site.date_format %}
24-
{{ post.date | date: site.date_format }}
23+
{% if site.dash.date_format %}
24+
{{ post.date | date: site.dash.date_format }}
2525
{% else %}
2626
{{ post.date | date: "%b %-d, %Y" }}
2727
{% endif %}

0 commit comments

Comments
 (0)