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 }}