summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-06-06 01:03:58 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-06-06 01:03:58 +0200
commit85f856482994db67d3d4e853e88e197da1c745ea (patch)
tree1f55ec7250c1aefe9daa17df44f40f6b91f91ab4 /layouts/shortcodes
parent5c8c5ba97b10a4a385dcfee38a6ab9e38e2fda2c (diff)
downloadgohugo-theme-ed-85f856482994db67d3d4e853e88e197da1c745ea.tar.gz
Change the way you enable table of contents in the sidebar
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/toc.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/toc.html b/layouts/shortcodes/toc.html
index ba789ee..cc23ebf 100644
--- a/layouts/shortcodes/toc.html
+++ b/layouts/shortcodes/toc.html
@@ -1 +1,5 @@
+<h2 class="no_toc" id="contents">
+ {{ i18n "table_of_contents" }}
+</h2>
+
{{ .Page.TableOfContents }}