render dates in %Y/%m/%d

This commit is contained in:
Colin 2022-04-05 22:01:00 +00:00
parent 2fd9ed8b98
commit 442a9237ed
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<h1>
{{ page.title }}
</h1>
<p><strong>{{ page.date }}</strong></p>
<p><strong>{{ page.date | date(format="%Y/%m/%d") }}</strong></p>
{{ page.content | safe }}

View File

@ -13,7 +13,9 @@
<div>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</div>
<div class="subtitle">{{ page.description }} <span class="date">({{ page.date }})</span></div>
<div class="subtitle">{{ page.description }}
<span class="date">({{ page.date | date(format="%Y/%m/%d") }})</span>
</div>
</li>
{% endfor %}
</ul>