dependencies: restore Hugo 0.95 compat #682

This commit is contained in:
Sören Weber 2023-10-12 23:32:17 +02:00
parent 4f1a9b5c7a
commit c2a71738e0
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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 }}