From d7d27e0afb1fb19e8f1cd51890ba62cd43132d4e Mon Sep 17 00:00:00 2001 From: Dillon Date: Tue, 20 Aug 2019 03:08:25 +0800 Subject: [PATCH] fix: fix toc id bug --- layouts/posts/single.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index b0c306eb..05e03a33 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -55,7 +55,9 @@
{{ T "toc" }}
- {{ .TableOfContents }} + {{ $toc := .TableOfContents }} + {{ $toc = replaceRE `id="TableOfContents"` `id="TableOfContentsMobile"` $toc }} + {{ $toc | safeHTML }}