Make time or date mentions machine-parsable using time tag #1
1 changed files with 26 additions and 23 deletions
|
@ -1,26 +1,29 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %} {% block metadata %}
|
||||||
|
|
||||||
{% block metadata %}
|
|
||||||
|
|
||||||
<meta name="description" content="{{ page.description }}" />
|
<meta name="description" content="{{ page.description }}" />
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %} {% block content %}
|
||||||
|
<h2>{{ page.title }}</h2>
|
||||||
{% block content %}
|
|
||||||
<h2>
|
|
||||||
{{ page.title }}
|
|
||||||
</h2>
|
|
||||||
{% if page.date and page.date is defined %}
|
{% if page.date and page.date is defined %}
|
||||||
<p>
|
<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>
|
</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>: <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>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div>
|
<div>{{ page.content | safe }}</div>
|
||||||
{{ page.content | safe }}
|
|
||||||
</div>
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue