mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Remove deprecated ARIA, unused classes
This commit is contained in:
parent
aab9356cf2
commit
47106441f7
1 changed files with 6 additions and 2 deletions
|
@ -3,12 +3,16 @@
|
|||
{{ $references := `(<section class="footnotes" role="doc-endnotes">
|
||||
<hr>)` -}}
|
||||
{{ $heading := .Params.footnote_heading -}}
|
||||
{{ $referencesWithHeading := printf `<section class="footnotes" role="doc-endnotes" aria-labelledby="note-hd">
|
||||
{{ $referencesWithHeading := printf `<section role="doc-endnotes" aria-labelledby="note-hd">
|
||||
<h2 id="note-hd">%s</h2>` ($heading) -}}
|
||||
|
||||
{{ $endnote := `(role="doc-endnote")` }}
|
||||
{{ $noEndnote := printf "" }}
|
||||
{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | safeHTML -}}
|
||||
|
||||
{{ $preWithTabIndex := `<pre tabindex="0">` }}
|
||||
{{ $preWithoutTabIndex := `<pre>` }}
|
||||
|
||||
{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithTabIndex $preWithoutTabIndex | safeHTML -}}
|
||||
{{ else -}}
|
||||
{{ .Content -}}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in a new issue