From 672de29f2e332a9350af7237e4fb6693c848989e Mon Sep 17 00:00:00 2001 From: Silvio Giebl 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 d064b48..b0afa73 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 -%}