my-website/templates/section.html

13 lines
333 B
HTML

{% extends "base.html" %} {% block content %}
<h2>{{ section.title }}</h2>
<article>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
<div>
{{ section.content | safe }}
</div>
</article>
{% endblock content %}