Add minimal support for subsections

This commit is contained in:
Che 2022-06-02 21:25:00 -04:00
parent c88c34eff6
commit 6253b43174

View file

@ -7,6 +7,17 @@
{{ section.content }} {{ section.content }}
{% else -%} {% else -%}
<h2 class="title"> {{ section.title }} </h2> <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> <h3>Pages:</h3>
<ul> <ul>
{% if section.pages -%} {% if section.pages -%}