my-website/templates/section.html

11 lines
280 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 %}