mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:28:49 +08: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
@ -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…
x
Reference in New Issue
Block a user