summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/embedded/templates/google_news.html
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-04 17:53:56 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-04 23:12:10 +0200
commit34ad9a4f178fcf50abe7246ad9d30b294327da16 (patch)
tree897c9094913420fb1bb6a413332f946d298b8d4f /tpl/tplimpl/embedded/templates/google_news.html
parent914cc85e22af2e6c28f24a5fc70de94e4b9f1b1b (diff)
tpl/tplimpl: Extract internal templates
Having them in separate files should make maintainance easier. When adding new or making changes to the templates: ```bash mage generate ``` This will get the Go code in sync. Fixes #4457
Diffstat (limited to 'tpl/tplimpl/embedded/templates/google_news.html')
-rwxr-xr-xtpl/tplimpl/embedded/templates/google_news.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/tplimpl/embedded/templates/google_news.html b/tpl/tplimpl/embedded/templates/google_news.html
new file mode 100755
index 000000000..9361de16a
--- /dev/null
+++ b/tpl/tplimpl/embedded/templates/google_news.html
@@ -0,0 +1,3 @@
+{{ if .IsPage }}{{ with .Params.news_keywords }}
+ <meta name="news_keywords" content="{{ range $i, $kw := first 10 . }}{{ if $i }},{{ end }}{{ $kw }}{{ end }}" />
+{{ end }}{{ end }} \ No newline at end of file