mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-29 19:42:11 +00:00
e7240cc3fc
Typo in an aria label.
10 lines
430 B
HTML
10 lines
430 B
HTML
{{ if .Params.footnote_heading -}}
|
|
{{ $references := `(<section class="footnotes" role="doc-endnotes">
|
|
<hr>)` -}}
|
|
{{ $heading := .Params.footnote_heading -}}
|
|
{{ $referencesWithHeading := printf `<section class="footnotes" role="doc-endnotes" aria-labelledby="note-hd">
|
|
<h2 id="note-hd">%s</h2>` ($heading) -}}
|
|
{{ .Content | replaceRE $references $referencesWithHeading | safeHTML -}}
|
|
{{ else -}}
|
|
{{ .Content -}}
|
|
{{ end -}}
|