mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-15 18:02:11 +00:00
1aed7a66d4
The site now has polygot markup and can handle both XHTML5 and HTML5 parsing rules. My staging site will be XHTML but my main site will be HTML5, just in case of parse errors. If other tools (e.g. LightHouse) end up supporting XHTML5, I'll consider switching the content-type to XHTML.
10 lines
555 B
HTML
10 lines
555 B
HTML
{{- define "main" -}}
|
|
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
|
{{- .Scratch.Set "codeIndex" 1 -}}
|
|
<main itemprop="hasPart" itemscope="" itemtype="https://schema.org/BlogPosting{{ if .Params.techarticle }} https://schema.org/TechArticle{{ end }}" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
|
<link itemprop="isPartOf" href="{{ .Site.Params.CanonicalBaseURL }}/" />
|
|
{{ partial "full-article.html" . }}
|
|
{{ partial "webmentions.html" . }}
|
|
</main>
|
|
{{ partial "prev-next.html" . -}}
|
|
{{- end }}
|