Skip to content

Commit

Permalink
Add deprecation warning to google_news template
Browse files Browse the repository at this point in the history
Closes #9172
  • Loading branch information
jmooring authored and bep committed Nov 21, 2021
1 parent 5e0947c commit 75a823a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 7 additions & 3 deletions tpl/tplimpl/embedded/templates.autogen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions tpl/tplimpl/embedded/templates/google_news.html
Original file line number Diff line number Diff line change
@@ -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 -}}

0 comments on commit 75a823a

Please sign in to comment.