aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/toc.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/toc.html')
-rw-r--r--layouts/partials/toc.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
new file mode 100644
index 0000000..1846f7a
--- /dev/null
+++ b/layouts/partials/toc.html
@@ -0,0 +1,7 @@
+{{ if (gt .WordCount 100 ) }}
+<aside>
+<h2>Table of contents</h2>
+
+{{ .TableOfContents }}
+</aside>
+{{ end }}