🥅 Add build warning when old theme params found

pull/231/head
James Panther 2022-06-27 13:12:26 +10:00
parent e2b7af1e72
commit a8f98205c9
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 7 additions and 0 deletions

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") }}

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