my-website/templates/page.html

31 lines
844 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %} {% block metadata %}
2021-07-13 23:39:59 +02:00
<meta name="description" content="{{ page.description }}" />
2021-07-13 23:39:59 +02:00
{% 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
>
</p>
{% 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
>
</p>
{% endif %}
<hr id="last-article-metadata" />
<div>{{ page.content | safe }}</div>
{% endblock content %}