sort sub pages and sections init product

This commit is contained in:
gws 2024-11-06 14:41:37 +01:00
parent 5607e42cc1
commit a7494ff14a
6 changed files with 30 additions and 12 deletions

View file

@ -8,18 +8,21 @@
</a>
<nav>
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
{% for path in section.subsections %}
{% set child = get_section(path=path) %}
<a class="nav-item subtitle-text" href="{{ child.permalink }}">{{ child.title }}</a>
{% endfor %}
{% if config.extra.juice_extra_menu %}
{% for menu in config.extra.juice_extra_menu %}
<a class="nav-item subtitle-text" href="{{ menu.link | safe }}">{{ menu.title }}</a>
{% endfor %}
{% endif %}
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
{% for path in section.subsections %}
{% set child = get_section(path=path) %}
<a class="nav-item subtitle-text" href="{{ child.permalink }}">{{ child.title }}</a>
{% endfor %}
</nav>