mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
fix: fix toc id bug
This commit is contained in:
parent
3d8efd6319
commit
d7d27e0afb
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@
|
|||
<details>
|
||||
<summary class="post-toc-title">{{ T "toc" }}<i class="details icon fas fa-angle-down"></i></summary>
|
||||
<div class="post-toc-content">
|
||||
{{ .TableOfContents }}
|
||||
{{ $toc := .TableOfContents }}
|
||||
{{ $toc = replaceRE `id="TableOfContents"` `id="TableOfContentsMobile"` $toc }}
|
||||
{{ $toc | safeHTML }}
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue