1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 10:12:10 +00:00
seirdy.one/layouts/partials/processed-content.html
Rohan Kumar 950918b104
Remove themes/, move its contents to repo root
I've modified etch-custom so much that it doesn't need to be its own
theme anymore.
2021-01-17 17:22:22 -08:00

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 -}}