my-website/templates/page.html

14 lines
443 B
HTML

{% extends "base.html" %} {% block content %}
<h3>{{ page.title }}</h3>
<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 %}