ref: da72805a4304a57362e8e79a01cc145767b027c5
parent: 72fd871710f094e57b1888e9242216b3b36c4c88
author: Bruno Amaral <[email protected]>
date: Sat Oct 29 07:30:59 EDT 2016
tpl: Only show post's own keywords in schema.org Fixes #2635 Closes #2646
--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -266,7 +266,7 @@
{{ end }}{{ end }}
<!-- Output all taxonomies as schema.org keywords -->
-<meta itemprop="keywords" content="{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}" />
+<meta itemprop="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" />
{{ end }}`)
t.addInternalTemplate("", "google_analytics.html", `{{ with .Site.GoogleAnalytics }}