Skip to content

Commit fb91a08

Browse files
authored
Merge pull request #24214 from dvdksn/schema-markup-fmt-fixes
schema markup fmt fixes
2 parents e369fca + 5b3eac0 commit fb91a08

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

layouts/_partials/schema.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{- $description := partial "utils/description.html" . -}}
2-
{{- $keywords := delimit (partialCached "utils/keywords.html" . .) ", " -}}
2+
{{- $keywords := partialCached "utils/keywords.html" . . -}}
33

44
{{- /* Build TechArticle schema for content pages */ -}}
55
{{- $schema := dict
66
"@context" "https://schema.org"
77
"@type" "TechArticle"
8-
"headline" .LinkTitle
8+
"headline" (truncate 110 .LinkTitle)
99
"description" $description
1010
"url" .Permalink
1111
-}}
@@ -76,7 +76,7 @@
7676
{{- $isPartOf := dict
7777
"@type" "WebPage"
7878
"@id" .Permalink
79-
"name" .LinkTitle
79+
"name" (truncate 110 .LinkTitle)
8080
-}}
8181
{{- $schema = merge $schema (dict "isPartOf" $isPartOf) -}}
8282
{{- end -}}
@@ -95,7 +95,7 @@
9595
"position" $position
9696
"item" (dict
9797
"@id" .Permalink
98-
"name" .LinkTitle
98+
"name" (truncate 110 .LinkTitle)
9999
)
100100
-}}
101101
{{- $breadcrumbs = $breadcrumbs | append $item -}}
@@ -109,7 +109,7 @@
109109
"position" $position
110110
"item" (dict
111111
"@id" .Permalink
112-
"name" .LinkTitle
112+
"name" (truncate 110 .LinkTitle)
113113
)
114114
-}}
115115
{{- $breadcrumbs = $breadcrumbs | append $currentItem -}}

0 commit comments

Comments
 (0)