1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00
seirdy.one/layouts/_default/baseof.html
Rohan Kumar 0b6c265223
schema.org: use more subtypes of "WebPage"
- Set "Articles" and "Notes" to "CollectionPage"
- Set "About" to "AboutPage" and "ProfilePage"

Since my "About" page now has two types, I had to alter the "stype" page
property to require a full URL.
2022-10-30 14:49:52 -07:00

13 lines
544 B
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{- default "" .Site.LanguageCode }}" xml:lang="{{- default "" .Site.LanguageCode }}" prefix="og: https://ogp.me/ns# article: https://ogp.me/ns/article# cc: http://creativecommons.org/ns#">
{{ partial "head.html" . -}}
{{- $stype := "https://schema.org/WebPage" -}}
{{- with .Params.stype -}}
{{- $stype = . -}}
{{- end -}}
<body itemscope="" itemtype="{{ $stype }}">
{{ partial "header.html" . -}}
{{- block "main" . }}{{- end -}}
{{ partial "footer.html" . }}
</body>
</html>