🥅 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
+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 }}