feat: add warning when config is incorrect

This commit is contained in:
Wen Junhua
2023-11-12 19:09:16 +08:00
parent 2dd90e3d20
commit 394a018e08
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -7,3 +7,6 @@
{{ if ne .Params.logo nil }}
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
{{ end }}
{{ if .Author }}
{{ warnf "[CONGO] Theme parameter `.Site.author` in `languages.xx.toml` has been renamed to `.Site.Params.author` in `params.toml`. Please update your site configuration." }}
{{ end }}