mirror of https://github.com/jpanther/congo.git
feat: add warning when config is incorrect
parent
2dd90e3d20
commit
394a018e08
|
@ -11,4 +11,3 @@ copyright = "© 2023 Congo contributors"
|
||||||
|
|
||||||
mainSections = ["samples"]
|
mainSections = ["samples"]
|
||||||
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
||||||
|
|
||||||
|
|
|
@ -7,3 +7,6 @@
|
||||||
{{ if ne .Params.logo nil }}
|
{{ if ne .Params.logo nil }}
|
||||||
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
|
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
|
||||||
{{ end }}
|
{{ 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 }}
|
||||||
|
|
Loading…
Reference in New Issue