From ca0872ecb5de1701ae590fc0701195e3c5aa4adb Mon Sep 17 00:00:00 2001 From: Qi Wenmin Date: Tue, 26 May 2020 07:09:26 +0800 Subject: [PATCH] Fix: can't give argument to non-function not .Params.hidden Build fail when using Hugo 0.71.1. --- 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 0f9c8f8a5a..5583eda0b9 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -97,7 +97,7 @@ {{ $currentFileUniqueID := "" }} {{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{with .sect}} - {{if and .IsSection ((not .Params.hidden) or $.showhidden)}} + {{if and .IsSection (or (not .Params.hidden) $.showhidden)}} {{safeHTML .Params.head}}