mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
The subsections field is now an iterator of paths
This commit is contained in:
@@ -50,7 +50,8 @@
|
|||||||
{% set extra = get_section(path = "first-edition/extra/_index.md") %}
|
{% set extra = get_section(path = "first-edition/extra/_index.md") %}
|
||||||
<h1>{{ extra.title }}</h1>
|
<h1>{{ extra.title }}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for subsection in extra.subsections|reverse %}
|
{% for subsection_path in extra.subsections|reverse %}
|
||||||
|
{% set subsection = get_section(path=subsection_path) %}
|
||||||
<li><a href="/{{ subsection.path | safe }}">{{ subsection.title }}</a></li>
|
<li><a href="/{{ subsection.path | safe }}">{{ subsection.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for page in extra.pages|reverse %}
|
{% for page in extra.pages|reverse %}
|
||||||
|
|||||||
Reference in New Issue
Block a user