Skip to content

Commit

Permalink
tpl: Only show post's own keywords in schema.org
Browse files Browse the repository at this point in the history
Fixes #2635
Closes #2646
  • Loading branch information
brunoamaral authored and bep committed Jun 28, 2017
1 parent 72fd871 commit da72805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/tplimpl/template_embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit da72805

Please sign in to comment.