Skip to content

Commit

Permalink
updated header
Browse files Browse the repository at this point in the history
  • Loading branch information
maldosari1 committed Mar 18, 2024
1 parent f177383 commit a1ac8ed
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions _includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,29 @@
</li>

<!-- Other pages -->
{% assign sorted_pages = site.pages | sort: 'nav_order' %}
{% for p in sorted_pages %}
{% if p.nav and p.autogen == null %}
{% if p.dropdown %}
{% assign has_active_child = false %}
{% for child in p.children %}
{% if page.title == child.title %}
{% assign has_active_child = true %}
{% endif %}
{% endfor %}
{% else %}
<li class="nav-item {% if page.url contains p.permalink %}active{% endif %}">
{% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
<a class="nav-link" href="{{ url | relative_url }}">
{{- p.title }}
{% if page.url contains p.url %}
<span class="sr-only">(current)</span>
{% endif %}
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% if site.enable_darkmode %}
<!-- Toogle theme mode -->
<li class="toggle-container">
Expand Down

0 comments on commit a1ac8ed

Please sign in to comment.