Skip to content

Commit

Permalink
Check if there are subsections and not only subpages for the menus in…
Browse files Browse the repository at this point in the history
… the header
  • Loading branch information
thibaultamartin committed Oct 12, 2022
1 parent 9c08e9e commit b75aede
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
</a>
<div class="section-submenu-wrap">
<div class="section-submenu">
{% for subsection_path in section.subsections %}
{% set subsection = get_section(path=subsection_path) %}
<a href="{{ subsection.path }}">{{ subsection.title }}</a>
{% endfor %}
{% for page in section.pages %}
<a href="{{ page.path }}">{{ page.title }}</a>
{% endfor %}
Expand Down

0 comments on commit b75aede

Please sign in to comment.