my-website/templates/page.html

26 lines
696 B
HTML

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