mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-25 02: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.
17 lines
453 B
HTML
17 lines
453 B
HTML
{{- with .Parent -}}
|
|
{{- if eq .Name "quotation" -}}
|
|
<figcaption>
|
|
—
|
|
{{- else if eq .Name "codefigure" -}}
|
|
Taken from
|
|
{{- end -}}
|
|
{{- end -}}
|
|
<span class="h-cite" itemprop="citation" role="doc-credit">
|
|
<span itemprop="isPartOf" itemscope="" itemtype="https://schema.org/{{ .Get "partOfType" }}">
|
|
{{ .Inner | markdownify | safeHTML }}
|
|
</span>
|
|
</span>
|
|
{{- with .Parent -}}{{ if eq .Name "quotation" }}
|
|
</figcaption>
|
|
{{- end -}}
|
|
{{- end }}
|