Add deprecation warning to google_news template

Closes #9172
This commit is contained in:
Joe Mooring
2021-11-20 17:49:47 -08:00
committed by Bjørn Erik Pedersen
parent 5e0947c5b5
commit 75a823a36a
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,6 @@
{{ if .IsPage }}{{ with .Params.news_keywords }}
<meta name="news_keywords" content="{{ range $i, $kw := first 10 . }}{{ if $i }},{{ end }}{{ $kw }}{{ end }}" />
{{ end }}{{ end }}
{{- warnf "The google_news internal template will be removed in a future release. Please remove calls to this template. See https://github.com/gohugoio/hugo/issues/9172 for additional information." -}}
{{- if .IsPage -}}
{{- with .Params.news_keywords -}}
<meta name="news_keywords" content="{{ range $i, $kw := first 10 . }}{{ if $i }},{{ end }}{{ $kw }}{{ end }}">
{{- end -}}
{{- end -}}