Fix: can't give argument to non-function not .Params.hidden

Build fail when using Hugo 0.71.1.
This commit is contained in:
Qi Wenmin 2020-05-26 07:09:26 +08:00 committed by Matthew Taylor
parent d4abb3c9a1
commit ca0872ecb5

View file

@ -97,7 +97,7 @@
{{ $currentFileUniqueID := "" }} {{ $currentFileUniqueID := "" }}
{{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
{{with .sect}} {{with .sect}}
{{if and .IsSection ((not .Params.hidden) or $.showhidden)}} {{if and .IsSection (or (not .Params.hidden) $.showhidden)}}
{{safeHTML .Params.head}} {{safeHTML .Params.head}}
<li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item <li data-nav-id="{{.RelPermalink}}" title="{{.Title}}" class="dd-item
{{if .IsAncestor $currentNode }}parent{{end}} {{if .IsAncestor $currentNode }}parent{{end}}