mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
Fix: can't give argument to non-function not .Params.hidden
Build fail when using Hugo 0.71.1.
This commit is contained in:
parent
d4abb3c9a1
commit
ca0872ecb5
1 changed files with 1 additions and 1 deletions
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue