From f7f167fa3eb97b84a57bf7d5d5f85e601b141cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20L=C3=B6ffler?= Date: Sun, 9 Jun 2024 13:18:48 +0200 Subject: [PATCH] No menu entry if weight <= 0 This patch allows hosting of pages without a menu entry. At the moment, all pages would create a menu entry, even those without a weight set. --- _includes/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/navbar.html b/_includes/navbar.html index 33ab05b..2f49740 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -31,7 +31,7 @@ {% assign pg = site.pages | sort: "weight" %} {% for node in pg %} - {% unless node.path contains "imprint" or node.path contains "index" %} + {% unless node.path contains "imprint" or node.path contains "index" or node.weight <= 0 %} {% assign node_conf2019 = false %} {% if node.url contains "/conf2019/" %}