my-website/templates/page.html

15 lines
443 B
HTML
Raw Normal View History

{% extends "base.html" %} {% 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 %}