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

Remove redundant section

This commit is contained in:
Rohan Kumar 2022-04-13 18:21:39 -07:00
parent eaa8023af8
commit 1938aa2246
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{{ if .Params.footnote_heading -}} {{ if .Params.footnote_heading -}}
<!--Add heading to footnotes--> <!--Add heading to footnotes, remove unused class-->
{{ $references := `(<section class="footnotes" role="doc-endnotes"> {{ $references := `(<section class="footnotes" role="doc-endnotes">
<hr>)` -}} <hr>)` -}}
{{ $heading := .Params.footnote_heading -}} {{ $heading := .Params.footnote_heading -}}
@ -17,7 +17,7 @@
<!--Move the Table of Contents heading *inside* the <nav> element--> <!--Move the Table of Contents heading *inside* the <nav> element-->
{{ $tocHeadingOutside := `<h2>Table of Contents</h2><nav id="TableOfContents">` }} {{ $tocHeadingOutside := `<h2>Table of Contents</h2><nav id="TableOfContents">` }}
{{ $tocHeadingInside := `<nav id=TableOfContents><h2>Table of Contents</h2>` }} {{ $tocHeadingInside := `<nav id=TableOfContents role="doc-toc"><h2>Table of Contents</h2>` }}
{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithoutTabIndex $preWithTabIndex | replaceRE $tocHeadingOutside $tocHeadingInside | safeHTML -}} {{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithoutTabIndex $preWithTabIndex | replaceRE $tocHeadingOutside $tocHeadingInside | safeHTML -}}
{{ else -}} {{ else -}}

View file

@ -1,5 +1,3 @@
<aside> <aside>
<section role="doc-toc">
<h2>Table of Contents</h2>{{.Page.TableOfContents}} <h2>Table of Contents</h2>{{.Page.TableOfContents}}
</section>
</aside> </aside>