From c2a71738e022892498c224b70a04d450cd221d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 12 Oct 2023 23:32:17 +0200 Subject: [PATCH] dependencies: restore Hugo 0.95 compat #682 --- layouts/partials/page-meta.hugo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/page-meta.hugo b/layouts/partials/page-meta.hugo index 9e10f1f361..9e5badf7c4 100644 --- a/layouts/partials/page-meta.hugo +++ b/layouts/partials/page-meta.hugo @@ -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 }}