Skip to content

Commit

Permalink
Fix aside TOC
Browse files Browse the repository at this point in the history
Necessary for mieweb/wikiGDrive#477

Signed-off-by: Grzegorz Godlewski <[email protected]>
  • Loading branch information
ggodlewski authored Jun 23, 2024
1 parent 03a8109 commit c0870c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/wc-eh-docs/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1 id='{{ if .Params.url }}{{ replace .Params.url ".md" ""}}{{ end }}'>{{ if .T
<div class="sticky-top top-nav-height">
<h2>Covered by this topic</h2>
<aside>
{{ .TableOfContents | replaceRE `href="#(.*)"` (printf `href="%s#%s"` .Page.RelPermalink "$1") | safeHTML }}
{{ .TableOfContents | replaceRE `href="#(.*)"` (printf `href="%s#%s"` .Page.RelPermalink "$1") | replaceRE `<a id="_(.*)"></a>` "" | safeHTML }}
</aside>
</div>
</div>
Expand All @@ -52,4 +52,4 @@ <h2>Covered by this topic</h2>
</div>
</div>
</div>
{{ partial "footer.html" . }}
{{ partial "footer.html" . }}

0 comments on commit c0870c5

Please sign in to comment.