Permalink
Browse files

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

Fixes #2635
Closes #2646
  • Loading branch information...
brunoamaral authored and bep committed Oct 29, 2016
1 parent 72fd871 commit da72805a4304a57362e8e79a01cc145767b027c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpl/tplimpl/template_embedded.go
@@ -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 }}

0 comments on commit da72805

Please sign in to comment.