Make time or date mentions machine-parsable using time tag #1

Merged
jotoho merged 4 commits from html-time-tag into master 2021-09-15 21:47:33 +02:00
Showing only changes of commit 448b2c144c - Show all commits

View file

@ -1,26 +1,29 @@
{% extends "base.html" %}
{% block metadata %}
{% extends "base.html" %} {% block metadata %}
<meta name="description" content="{{ page.description }}" />
{% endblock %}
{% block content %}
<h2>
{{ page.title }}
</h2>
{% endblock %} {% block content %}
<h2>{{ page.title }}</h2>
{% if page.date and page.date is defined %}
<p>
<em><strong>Published on</strong>: <time datetime="{{page.date}}">{{ page.date | date(format="%A, %e %B %Y %R %Z", timezone="Europe/Berlin") }}</time></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>
{% endif %}
{% if page.updated and page.updated != page.date %}
{% endif %} {% if page.updated and page.updated != page.date %}
<p>
<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>
<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>
{% endif %}
<div>
{{ page.content | safe }}
</div>
<div>{{ page.content | safe }}</div>
{% endblock content %}