Skip to content

Commit 3c25e3b

Browse files
committed
list sub-pages in the section template
shown for /tutorials/exercises/ as example
1 parent e949020 commit 3c25e3b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/section.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
{% block content %}
88
<div class="page__content">
99
{{ section.content | safe }}
10+
11+
{% if section.pages %}
12+
<ul>
13+
{% for page in section.pages %}
14+
<li>
15+
<a href="{{ page.permalink }}">{{ page.title }}</a>
16+
</li>
17+
{% endfor %}
18+
</ul>
19+
{% endif %}
1020
</div>
1121
{% endblock %}
1222

0 commit comments

Comments
 (0)