Format page dates

This commit is contained in:
Jonas Tobias Hopusch 2021-08-26 09:32:57 +02:00
parent 5ce6f380e6
commit 69a5ae7ac9
Failed to generate hash of commit

View file

@ -12,12 +12,12 @@
</h2>
{% if page.date and page.date is defined %}
<p>
<em><strong>Published on</strong>: {{ page.date }}</em>
<em><strong>Published on</strong>: {{ page.date | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</em>
</p>
{% endif %}
{% if page.updated and page.updated != page.date %}
<p>
<em><strong>Last updated on</strong>: {{ page.updated }}</em>
<em><strong>Last updated on</strong>: {{ page.updated | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</em>
</p>
{% endif %}
<div>