mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
config: even more filtered warnings #693
This commit is contained in:
parent
9829156c6d
commit
7ba8f536f4
2 changed files with 8 additions and 2 deletions
|
@ -115,7 +115,10 @@
|
|||
{{- else }}
|
||||
{{- with site.Social.facebook_admin }}
|
||||
{{- $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 }}
|
||||
|
||||
|
|
|
@ -51,7 +51,10 @@
|
|||
{{- else }}
|
||||
{{- with site.Social.twitter }}
|
||||
{{- $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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue