Context in warnings.html is already .Site.

Fixes a build issue with Hugo 0.112.0.

Fixes #560.
pull/561/head
Lars Bilke 2023-05-24 08:54:13 +02:00
parent d4b893ed6e
commit d96fcff619
No known key found for this signature in database
GPG Key ID: 452CC985BBF61321
1 changed files with 3 additions and 3 deletions

View File

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