File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-}}
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 -}}
9595 "position" $position
9696 "item" (dict
9797 "@id" .Permalink
98- "name" .LinkTitle
98+ "name" (truncate 110 .LinkTitle)
9999 )
100100 -}}
101101 {{- $breadcrumbs = $breadcrumbs | append $item -}}
109109 "position" $position
110110 "item" (dict
111111 "@id" .Permalink
112- "name" .LinkTitle
112+ "name" (truncate 110 .LinkTitle)
113113 )
114114-}}
115115{{- $breadcrumbs = $breadcrumbs | append $currentItem -}}
You can’t perform that action at this time.
0 commit comments