my-website/templates/page.html

23 lines
543 B
HTML
Raw Normal View History

2021-07-13 23:39:59 +02:00
{% extends "base.html" %}
{% block metadata %}
2021-07-13 23:47:05 +02:00
<meta name="description" content="{{ page.description }}"/>
2021-07-13 23:39:59 +02:00
{% endblock %}
{% block content %}
2021-06-14 12:08:22 +02:00
<h3>{{ page.title }}</h3>
<article>
{% if page.date and page.date is defined %}
2021-06-14 12:08:22 +02:00
<p>Published on: {{ page.date }}</p>
{% endif %}
{% if page.updated and page.updated != page.date %}
<p>Last updated on: {{ page.updated }}</p>
{% endif %}
2021-06-14 12:08:22 +02:00
<div>
{{ page.content | safe }}
</div>
</article>
{% endblock content %}