Skip to content

Commit

Permalink
templates: Fix handling of menu separator
Browse files Browse the repository at this point in the history
Closes #748

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 31, 2024
1 parent 699da7c commit 7600b3a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions templates/common/header.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
<ul class="p-navigation__dropdown" id="{{ entry[1] }}-menu" aria-hidden="true">
{% for sub_entry in entry[0] %}
{% if not sub_entry[0] and sub_entry[0] is string %}
<!-- SEPARATOR / HEADING -->
<li>
<!-- SEPARATOR / HEADING -->
<hr class="u-no-margin--bottom">
{% if sub_entry[1] %}
<h3 class="p-heading--5 p-navigation__link u-no-margin--bottom">{{ sub_entry[1] }}</h3>
{% endif %}
</li>
{% else %}
<li>
Expand Down

0 comments on commit 7600b3a

Please sign in to comment.