site/layouts/partials/processed-content.html

6 lines
280 B
HTML

{{ $footnotes := `(<div class="footnotes" role="doc-endnotes">
<hr>)` -}}
{{ $footnotesWithHeading := printf `<div class="footnotes" role="doc-endnotes">
<hr><p id="footnotes-heading">%s</p>` "Footnotes" -}}
{{ .Content | replaceRE $footnotes $footnotesWithHeading | safeHTML -}}