fmouhart.epheme.re/templates/nav.html

10 lines
425 B
HTML
Raw Normal View History

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-06 09:00:03 +00:00
<li><a href="{{ subsection.permalink }}" {% if section and section == subsection %} class="nav_current" {% endif %}>{{ subsection.title }}</a></li>
2023-11-02 08:04:40 +00:00
{% endfor %}
</menu>
</nav>