mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
950918b104
I've modified etch-custom so much that it doesn't need to be its own theme anymore.
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 -}}
|