mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
tpl: Only show post's own keywords in schema.org
Fixes #2635 Closes #2646
This commit is contained in:
1 parent
72fd871710
commit
da72805a43
1 file changed
+1
-1
@@ -266,7 +266,7 @@ func (t *templateHandler) embedTemplates() {
|
|||||||
{{ end }}{{ end }}
|
{{ end }}{{ end }}
|
||||||
|
|
||||||
<!-- Output all taxonomies as schema.org keywords -->
|
<!-- 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 }}`)
|
{{ end }}`)
|
||||||
|
|
||||||
t.addInternalTemplate("", "google_analytics.html", `{{ with .Site.GoogleAnalytics }}
|
t.addInternalTemplate("", "google_analytics.html", `{{ with .Site.GoogleAnalytics }}
|
||||||
|
|||||||
Reference in new issue
Block a user