From 46223816d607076c2f984655fefd48085176f674 Mon Sep 17 00:00:00 2001 From: Rasmus Stougaard Date: Wed, 18 Dec 2019 21:02:24 +0100 Subject: [PATCH] Avoid displaying hidden sections in menu --- layouts/partials/menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 967fc6c006..a6be42fa6f 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -95,7 +95,7 @@ {{ $showvisitedlinks := .showvisitedlinks }} {{ $currentNode := .currentnode }} {{with .sect}} - {{if .IsSection}} + {{if and .IsSection ((not .Params.hidden) or $.showhidden)}} {{safeHTML .Params.head}}