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 1/2] 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/" %} From ab488c8d6be492d9f7284557162f761ee6d1ddbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20L=C3=B6ffler?= Date: Mon, 29 Jun 2026 11:48:14 +0200 Subject: [PATCH 2/2] requested change: remove special cases This removes the special cases of imprint and index. Those did not have weight defined, while all other had. From this on, all pages without weight defined will not been shown in the menu, not only those two. --- _includes/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/navbar.html b/_includes/navbar.html index 2f49740..a18115d 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" or node.weight <= 0 %} + {% unless node.weight == nul or node.weight <= 0 %} {% assign node_conf2019 = false %} {% if node.url contains "/conf2019/" %}