mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
dependencies: restore Hugo 0.95 compat #682
This commit is contained in:
parent
4f1a9b5c7a
commit
c2a71738e0
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
{{- range $currentNode.Site.Params.relearn.dependencies }}
|
||||
{{- $has := printf "has%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 }}
|
||||
{{- $currentNode.Store.Set $has true }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue