mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
8 lines
352 B
HTML
8 lines
352 B
HTML
|
{{ if .Params.footnote_heading -}}
|
||
|
{{ $references := `(<section class="footnotes" role="doc-endnotes")` -}}
|
||
|
{{ $heading := .Params.footnote_heading -}}
|
||
|
{{ $referencesWithHeading := printf `${1} aria-labeledby="note-hd">
|
||
|
<h2 id="note-hd">%s</h2` ($heading) -}}
|
||
|
{{ .Content | replaceRE $references $referencesWithHeading | safeHTML -}}
|
||
|
{{ end -}}
|