1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Prepare for goldmark v1.4.12

Goldmark v1.4.12 switched footnotes to a div. Make them a <section>
again, since I do insert a heading.
This commit is contained in:
Rohan Kumar 2022-04-24 12:35:07 -07:00
parent 8d22a26692
commit 4e48237647
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 4 additions and 2 deletions

View file

@ -49,7 +49,9 @@ blockquote {
padding-left: 0.8em; padding-left: 0.8em;
} }
/* narrow screens: reduce list indentation */ /* narrow screens: reduce list indentation
* touch screens: lists of links should be
* easy to tap so give them some spacing. */
dd, dd,
ol, ol,
ul { ul {

View file

@ -4,7 +4,7 @@
{{end}} {{end}}
<!--Add heading to footnotes, remove unused class--> <!--Add heading to footnotes, remove unused class-->
{{ $referencesWithoutHeading := `(<section class="footnotes" role="doc-endnotes"> {{ $referencesWithoutHeading := `(<(section|div) class="footnotes" role="doc-endnotes">
<hr>)` -}} <hr>)` -}}
{{ $referencesWithHeading := printf `<section role="doc-endnotes" aria-labelledby="note-hd"> {{ $referencesWithHeading := printf `<section role="doc-endnotes" aria-labelledby="note-hd">
<h2 id="note-hd">%s</h2>` ($footnote_heading) -}} <h2 id="note-hd">%s</h2>` ($footnote_heading) -}}