my-website/templates/page.html

22 lines
538 B
HTML

{% extends "base.html" %}
{% block metadata %}
<meta name="description">{{ page.description }}</meta>
{% endblock %}
{% 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 %}