Make dates on page template machine readable

This commit is contained in:
Jonas Tobias Hopusch 2021-09-15 21:13:37 +02:00
parent f990565df7
commit 447df83a64
Failed to generate hash of commit

View file

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