tpl: Only show post's own keywords in schema.org

Fixes #2635
Closes #2646
This commit is contained in:
Bruno Amaral authored and Bjørn Erik Pedersen committed 2017-06-28 21:26:18 +02:00
1 parent 72fd871710
commit da72805a43
1 file changed
+1 -1
+1 -1
View File
@@ -266,7 +266,7 @@ func (t *templateHandler) embedTemplates() {
{{ 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 }}