mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02: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:
parent
8d22a26692
commit
4e48237647
2 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,9 @@ blockquote {
|
|||
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,
|
||||
ol,
|
||||
ul {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{end}}
|
||||
|
||||
<!--Add heading to footnotes, remove unused class-->
|
||||
{{ $referencesWithoutHeading := `(<section class="footnotes" role="doc-endnotes">
|
||||
{{ $referencesWithoutHeading := `(<(section|div) class="footnotes" role="doc-endnotes">
|
||||
<hr>)` -}}
|
||||
{{ $referencesWithHeading := printf `<section role="doc-endnotes" aria-labelledby="note-hd">
|
||||
<h2 id="note-hd">%s</h2>` ($footnote_heading) -}}
|
||||
|
|
Loading…
Reference in a new issue