Add minimal support for subsections

This commit is contained in:
Che 2022-06-02 21:25:00 -04:00
parent c88c34eff6
commit 6253b43174
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,17 @@
{{ section.content }}
{% else -%}
<h2 class="title"> {{ section.title }} </h2>
{% if section.subsections -%}
<h3>Subsections:</h3>
<ul>
{% for subsec in section.subsections -%}
{% set sec_ = get_section(path=subsec) -%}
<li><a href="{{ sec_.permalink | safe }}">{{ sec_.title }}</a></li>
{% endfor %}
</ul>
{% endif -%}
<h3>Pages:</h3>
<ul>
{% if section.pages -%}