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:
parent
eaa8023af8
commit
1938aa2246
2 changed files with 2 additions and 4 deletions
|
@ -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 -}}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue