From 672de29f2e332a9350af7237e4fb6693c848989e Mon Sep 17 00:00:00 2001
From: Silvio Giebl <silvio.giebl@hivemq.com>
Date: Sun, 2 Feb 2020 20:54:02 +0100
Subject: [PATCH] Exclude pages without title from nav (e.g. redirects)

---
 _includes/nav.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_includes/nav.html b/_includes/nav.html
index d064b488..b0afa732 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -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 -%}
-- 
GitLab