my-website/templates/section.html

9 lines
268 B
HTML

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