my-website/templates/page.html

23 lines
538 B
HTML
Raw Normal View History

2021-07-13 23:39:59 +02:00
{% extends "base.html" %}
{% block metadata %}
<meta name="description">{{ page.description }}</meta>
{% 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 %}