about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/notes/layouts/_default/single.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/fcuny/notes/layouts/_default/single.html b/users/fcuny/notes/layouts/_default/single.html
index 356f344..b4c5443 100644
--- a/users/fcuny/notes/layouts/_default/single.html
+++ b/users/fcuny/notes/layouts/_default/single.html
@@ -29,6 +29,13 @@
   {{ end }}
 </div>
 
+{{ if .Params.toc }}
+<div class="toc">
+  <strong>Table of Contents</strong>
+  {{ .TableOfContents }}
+</div>
+{{ end }}
+
 {{ .Content }}
 
 {{ end }}