config: even more filtered warnings #693

This commit is contained in:
Sören Weber 2023-10-20 20:18:27 +02:00
parent 9829156c6d
commit 7ba8f536f4
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 8 additions and 2 deletions

View file

@ -115,7 +115,10 @@
{{- else }} {{- else }}
{{- with site.Social.facebook_admin }} {{- with site.Social.facebook_admin }}
{{- $facebookAdmin = . }} {{- $facebookAdmin = . }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} {{- $hugoVersion := "0.120.0" }}
{{- if ge hugo.Version $hugoVersion }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -51,7 +51,10 @@
{{- else }} {{- else }}
{{- with site.Social.twitter }} {{- with site.Social.twitter }}
{{- $twitterSite = . }} {{- $twitterSite = . }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }} {{- $hugoVersion := "0.120.0" }}
{{- if ge hugo.Version $hugoVersion }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}