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

This commit is contained in:
Silvio Giebl 2020-02-02 20:54:02 +01:00 committed by Patrick Marsceill
parent d39c922806
commit d7e57de985
No known key found for this signature in database
GPG Key ID: 286B93882D828F40
1 changed files with 1 additions and 1 deletions

View File

@ -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 -%}