summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-03-24 19:45:22 +0100
committerxengineering <me@xengineering.eu>2023-03-24 19:45:22 +0100
commitaaf42de1c90eed876b19943c414d6c8f65af351a (patch)
tree1919fddd0f297cb53992d242f460fd891dae0e0c /layouts
parentc6c71799df9bf4476f6a54e304a9fd730cfe65e0 (diff)
downloadwebsite-aaf42de1c90eed876b19943c414d6c8f65af351a.tar
website-aaf42de1c90eed876b19943c414d6c8f65af351a.tar.zst
website-aaf42de1c90eed876b19943c414d6c8f65af351a.zip
Add TOC for article(s)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/articles/single.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/articles/single.html b/layouts/articles/single.html
index 62a23d3..7df87e4 100644
--- a/layouts/articles/single.html
+++ b/layouts/articles/single.html
@@ -27,6 +27,10 @@
</header>
<main>
+ <details>
+ <summary>Table of contents</summary>
+ {{ .TableOfContents }}
+ </details>
{{ .Content }}
{{ partial "footer.html" . }}
</main>