mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
tpl: Only show post's own keywords in schema.org
Fixes #2635 Closes #2646
This commit is contained in:
parent
72fd871710
commit
da72805a43
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue