mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-02 23:16:32 +08:00
menu: wildspace #642
This commit is contained in:
parent
493e23ebe1
commit
583f94e4b9
@ -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…
x
Reference in New Issue
Block a user