mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-03-20 16:15:09 +00:00
menu: wildspace #642
This commit is contained in:
parent
493e23ebe1
commit
583f94e4b9
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@
|
|||
{{- $isPostSelf := and ($isSelfFound) (not $isSelf) }}
|
||||
|
||||
{{- $hidden_node := or (.node.Params.hidden) (eq .node.Title "") }}
|
||||
{{- $hidden_stem:= or $hidden_node .hiddenstem }}
|
||||
{{- $hidden_current_stem:= or $hidden_node .hiddencurrent }}
|
||||
{{- $hidden_stem := or $hidden_node .hiddenstem }}
|
||||
{{- $hidden_current_stem := or $hidden_node .hiddencurrent }}
|
||||
{{- $hidden_from_current := or (and $hidden_node (not $isAncestor) (not $isSelf) ) (and .hiddencurrent (or $isPreSelf $isPostSelf $isDescendant) ) }}
|
||||
{{- if $isSelf }}
|
||||
{{- $currentNode.Scratch.Set "relearnIsHiddenNode" $hidden_node }}
|
||||
|
|
Loading…
Add table
Reference in a new issue