Merge pull request #24214 from dvdksn/schema-markup-fmt-fixes

schema markup fmt fixes
This commit is contained in:
David Karlsson
2026-02-25 18:35:09 +01:00
committed by GitHub

View File

@@ -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 -}}