Skip to content

Commit

Permalink
[fix] header generation, take two
Browse files Browse the repository at this point in the history
  • Loading branch information
EsseLowNitro authored Dec 18, 2024
1 parent 523da49 commit 0e24d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<li {% if include.content == "" %}aria-current="page"{% endif %}><a href="/"><img src="/assets/secureblue.svg" alt=""/>secureblue</a></li>
{% for i in site.pages %}
{% if i.permalink != "/" %}
<li {% if include.content == i.permalink | remove: "/" %}aria-current="page"{% endif %}><a href="{{ i.permalink }}">{{ i.short_title }}</a></li>
{% assign slashless_permalink = i.permalink | remove: "/" %}
<li {% if include.content == slashless_permalink %}aria-current="page"{% endif %}><a href="{{ i.permalink }}">{{ i.short_title }}</a></li>
{% endif %}
{% endfor %}
</ul>
Expand Down

0 comments on commit 0e24d44

Please sign in to comment.