From 3768ca9ede2f984a52830c7a70ac767b9dd8f5ce Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 10 Jul 2024 09:51:33 -0400 Subject: [PATCH] Update footer.html --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d8042efb..ead747de 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{ if eq .Type "page" }} {{ partial "page_meta.html" . }} {{ end }} - {{- if and (not .Site.Params.author) .Site.author -}} + {{- if and (not (isset .Site.Params "author")) (isset .Site "author") -}} {{ errorf "Please move [author] to [params.author]; Hugo has deprecated the former." }} {{- end -}}