2023-11-20 10:33:01 +00:00
|
|
|
{% if page %}
|
|
|
|
{% set page_section = get_section(path=page.ancestors[1], metadata_only = true) %}
|
|
|
|
{% endif %}
|
2023-11-02 08:04:40 +00:00
|
|
|
<nav>
|
|
|
|
<menu>
|
2023-11-06 09:00:03 +00:00
|
|
|
<li><a {% if section and section == root %} class="nav_current" {% endif %} href="/">Home</a></li>
|
2023-11-02 08:04:40 +00:00
|
|
|
{% for subsection in root.subsections %}
|
|
|
|
{% set subsection = get_section(path=subsection, metadata_only=true) %}
|
2023-11-20 10:33:01 +00:00
|
|
|
<li><a href="{{ subsection.permalink }}" {% if section and section.title == subsection.title or page and page_section.title == subsection.title %} class="nav_current" {% endif %}>{{ subsection.title }}</a></li>
|
2023-11-02 08:04:40 +00:00
|
|
|
{% endfor %}
|
|
|
|
</menu>
|
|
|
|
</nav>
|