Skip to content

Commit

Permalink
anew
Browse files Browse the repository at this point in the history
  • Loading branch information
utksi committed Jan 16, 2025
1 parent 4ae1ae9 commit 52f1cdb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
<!-- Other pages -->
{% assign sorted_pages = site.pages | sort: 'nav_order' %}
{% for p in sorted_pages %}
{% if p.nav == true and p.autogen == null %}
<!-- default version {% if p.nav and p.autogen == null %} -->
{% if p.nav and p.autogen == null %}
{% if p.dropdown %}
{% assign has_active_child = false %}
{% for child in p.children %}
Expand Down Expand Up @@ -100,8 +99,7 @@
</li>
{% else %}
{% assign parent_link = p.permalink | remove: 'index.html' %}
<li class="nav-item {% if page.url == parent_link %}active{% endif %}">
<!-- default version <li class="nav-item {% if page.url contains parent_link %}active{% endif %}"> -->
<li class="nav-item {% if page.url contains parent_link %}active{% endif %}">
{%- if p.permalink contains '://' -%}
{%- assign url = p.permalink -%}
{%- elsif p.permalink contains '/blog/' -%}
Expand Down

0 comments on commit 52f1cdb

Please sign in to comment.