Skip to content
Snippets Groups Projects
Commit 672de29f authored by Silvio Giebl's avatar Silvio Giebl
Browse files

Exclude pages without title from nav (e.g. redirects)

parent e2e01eff
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
{%- assign pages_list = site.html_pages | sort: "nav_order" -%}
{%- for node in pages_list -%}
{%- unless node.nav_exclude -%}
{%- if node.parent == nil -%}
{%- if node.parent == nil and node.title -%}
<li class="nav-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
{%- if page.parent == node.title or page.grand_parent == node.title -%}
{%- assign first_level_url = node.url | absolute_url -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment