mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:12:03 +08:00
dependencies: restore Hugo 0.95 compat #682
This commit is contained in:
parent
4f1a9b5c7a
commit
c2a71738e0
@ -9,7 +9,7 @@
|
|||||||
{{- range $currentNode.Site.Params.relearn.dependencies }}
|
{{- range $currentNode.Site.Params.relearn.dependencies }}
|
||||||
{{- $has := printf "has%s" .name }}
|
{{- $has := printf "has%s" .name }}
|
||||||
{{- $disable := printf "disable%s" .name }}
|
{{- $disable := printf "disable%s" .name }}
|
||||||
{{- $wants := or (and (ne (index $currentNode.Params $disable) nil) (not (index $currentNode.Params $disable))) (and (ne (index .Site.Params $disable) nil) (not (index .Site.Params $disable))) }}
|
{{- $wants := or (and (ne (index $currentNode.Params $disable) nil) (not (index $currentNode.Params $disable))) (and (ne (index $currentNode.Site.Params $disable) nil) (not (index $currentNode.Site.Params $disable))) }}
|
||||||
{{- if $wants }}
|
{{- if $wants }}
|
||||||
{{- $currentNode.Store.Set $has true }}
|
{{- $currentNode.Store.Set $has true }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user