From: Joe Mooring Date: Sun, 21 Nov 2021 01:49:47 +0000 (-0800) Subject: Add deprecation warning to google_news template X-Git-Tag: v0.90.0~28 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=75a823a36a75781c0c5d89fe9f328e3b9322d95f;p=brevno-suite%2Fhugo Add deprecation warning to google_news template Closes #9172 --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 5394cbc7..33062ba0 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -200,9 +200,13 @@ if (!doNotTrack) { {{ end }} {{- end -}} `}, - {`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }} - -{{ end }}{{ end }}`}, + {`google_news.html`, `{{- 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 -}} + + {{- end -}} +{{- end -}} +`}, {`opengraph.html`, ` diff --git a/tpl/tplimpl/embedded/templates/google_news.html b/tpl/tplimpl/embedded/templates/google_news.html index 9361de16..d1a995c8 100644 --- a/tpl/tplimpl/embedded/templates/google_news.html +++ b/tpl/tplimpl/embedded/templates/google_news.html @@ -1,3 +1,6 @@ -{{ if .IsPage }}{{ with .Params.news_keywords }} - -{{ end }}{{ end }} \ No newline at end of file +{{- 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 -}} + + {{- end -}} +{{- end -}}