Skip to content
Snippets Groups Projects
Unverified Commit d7e57de9 authored by Silvio Giebl's avatar Silvio Giebl Committed by Patrick Marsceill
Browse files

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

parent d39c9228
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
{%- assign pages_list = sorted_ordered_pages_list | concat: sorted_unordered_pages_list -%}
{%- for node in pages_list -%}
{%- unless node.nav_exclude -%}
{%- if node.parent == nil -%}
{%- if node.parent == nil and node.title -%}
<li class="navigation-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