Skip to content

Commit f88723a

Browse files
committed
site: add mainEntityOfPage, inLanguage schema.org metadata
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent b5e217c commit f88723a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

layouts/_partials/schema.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
{{- $schema = merge $schema (dict "dateModified" (time.Format "2006-01-02T15:04:05Z07:00" .)) -}}
1919
{{- end -}}
2020

21+
{{- /* Add mainEntityOfPage and language */ -}}
22+
{{- $schema = merge $schema (dict
23+
"mainEntityOfPage" (dict "@type" "WebPage" "@id" .Permalink)
24+
"inLanguage" site.Language.Lang
25+
) -}}
26+
2127
{{- /* Add author and publisher */ -}}
2228
{{- $logoUrl := printf "%sassets/images/docker-logo.png" (strings.TrimSuffix "/" site.BaseURL | printf "%s/") -}}
2329
{{- $org := dict

0 commit comments

Comments
 (0)