Add minimal support for subsections
This commit is contained in:
parent
c88c34eff6
commit
6253b43174
1 changed files with 11 additions and 0 deletions
|
@ -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 -%}
|
||||||
|
|
Loading…
Reference in a new issue