mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
site: add mainEntityOfPage, inLanguage schema.org metadata
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
{{- $schema = merge $schema (dict "dateModified" (time.Format "2006-01-02T15:04:05Z07:00" .)) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Add mainEntityOfPage and language */ -}}
|
||||
{{- $schema = merge $schema (dict
|
||||
"mainEntityOfPage" (dict "@type" "WebPage" "@id" .Permalink)
|
||||
"inLanguage" site.Language.Lang
|
||||
) -}}
|
||||
|
||||
{{- /* Add author and publisher */ -}}
|
||||
{{- $logoUrl := printf "%sassets/images/docker-logo.png" (strings.TrimSuffix "/" site.BaseURL | printf "%s/") -}}
|
||||
{{- $org := dict
|
||||
|
||||
Reference in New Issue
Block a user