🥅 Add build warning when old theme params found

This commit is contained in:
James Panther
2022-06-27 13:12:26 +10:00
parent e2b7af1e72
commit a8f98205c9
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
{{- partial "partials/functions/warnings.html" .Site -}}
<!DOCTYPE html>
<html
lang="{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default "en") }}
+6
View File
@@ -0,0 +1,6 @@
{{ if ne .Site.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 }}
{{ warnf "[CONGO] Theme parameter `showScrollToTop` has been renamed to `footer.showScrollToTop`. Please update your site configuration." }}
{{ end }}