my-website/templates/page.html

22 lines
543 B
HTML

{% extends "base.html" %}
{% block metadata %}
<meta name="description" content="{{ page.description }}"/>
{% endblock %}
{% block content %}
<h2>{{ page.title }}</h2>
<article>
{% if page.date and page.date is defined %}
<p>Published on: {{ page.date }}</p>
{% endif %}
{% if page.updated and page.updated != page.date %}
<p>Last updated on: {{ page.updated }}</p>
{% endif %}
<div>
{{ page.content | safe }}
</div>
</article>
{% endblock content %}