mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Merge pull request #24214 from dvdksn/schema-markup-fmt-fixes
schema markup fmt fixes
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user