site: add mainEntityOfPage, inLanguage schema.org metadata

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2026-02-21 11:12:49 +01:00
parent b5e217c48a
commit f88723afe2

View File

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