From d96fcff619796e1a8bb37020256cc535f181af69 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Wed, 24 May 2023 08:54:13 +0200 Subject: [PATCH] Context in warnings.html is already .Site. Fixes a build issue with Hugo 0.112.0. Fixes #560. --- layouts/partials/functions/warnings.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/functions/warnings.html b/layouts/partials/functions/warnings.html index 9598c61a..d7cb6178 100644 --- a/layouts/partials/functions/warnings.html +++ b/layouts/partials/functions/warnings.html @@ -1,9 +1,9 @@ -{{ if ne .Site.Params.showAppearanceSwitcher nil }} +{{ if ne .Params.showAppearanceSwitcher nil }} {{ warnf "[CONGO] Theme parameter `showAppearanceSwitcher` has been renamed to `footer.showAppearanceSwitcher`. Please update your site configuration." }} {{ end }} -{{ if ne .Site.Params.showScrollToTop nil }} +{{ if ne .Params.showScrollToTop nil }} {{ warnf "[CONGO] Theme parameter `showScrollToTop` has been renamed to `footer.showScrollToTop`. Please update your site configuration." }} {{ end }} -{{ if ne .Site.Params.logo nil }} +{{ if ne .Params.logo nil }} {{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }} {{ end }}