mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 08:12:11 +00:00
7 lines
352 B
HTML
7 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 -}}
|