zola/test_site/templates/section.html
Vincent Prouillet f14dbcbdf4 section.subsections is now an array of paths
Close #446
Close #260
Close #478
Close #284
Close #480
2018-10-15 22:28:27 +02:00

13 lines
336 B
HTML

{% extends "index.html" %}
{% block content %}
{% for page in section.pages %}
{{page.title}}
{% endfor %}
{% for sub in section.subsections %}
{% set subsection = get_section(path=sub) %}
{{subsection.title}}
Sub-pages: {{subsection.pages | length}}
{% endfor %}
{% endblock content %}