diff --git a/layouts/_partials/schema.html b/layouts/_partials/schema.html index 11e6993de9e..12e762dc7a3 100644 --- a/layouts/_partials/schema.html +++ b/layouts/_partials/schema.html @@ -1,11 +1,11 @@ {{- $description := partial "utils/description.html" . -}} -{{- $keywords := delimit (partialCached "utils/keywords.html" . .) ", " -}} +{{- $keywords := partialCached "utils/keywords.html" . . -}} {{- /* Build TechArticle schema for content pages */ -}} {{- $schema := dict "@context" "https://schema.org" "@type" "TechArticle" - "headline" .LinkTitle + "headline" (truncate 110 .LinkTitle) "description" $description "url" .Permalink -}} @@ -76,7 +76,7 @@ {{- $isPartOf := dict "@type" "WebPage" "@id" .Permalink - "name" .LinkTitle + "name" (truncate 110 .LinkTitle) -}} {{- $schema = merge $schema (dict "isPartOf" $isPartOf) -}} {{- end -}} @@ -95,7 +95,7 @@ "position" $position "item" (dict "@id" .Permalink - "name" .LinkTitle + "name" (truncate 110 .LinkTitle) ) -}} {{- $breadcrumbs = $breadcrumbs | append $item -}} @@ -109,7 +109,7 @@ "position" $position "item" (dict "@id" .Permalink - "name" .LinkTitle + "name" (truncate 110 .LinkTitle) ) -}} {{- $breadcrumbs = $breadcrumbs | append $currentItem -}}