aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2020-06-07 01:38:42 -0400
committerMatt Kohls <mattkohls13@gmail.com>2020-06-07 01:38:42 -0400
commitd5310e86ef491cd662fd41a4d80e8e327a36bcd8 (patch)
tree00b88ce83b4a0d0d700cd7bd0858e846071d10a1 /layouts/partials
parent0da6ee8846f597ac897646a2f33521a1efe0655c (diff)
downloadpagedown-d5310e86ef491cd662fd41a4d80e8e327a36bcd8.tar.gz
pagedown-d5310e86ef491cd662fd41a4d80e8e327a36bcd8.tar.bz2
pagedown-d5310e86ef491cd662fd41a4d80e8e327a36bcd8.zip
Adding in table of contents
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/toc.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
new file mode 100644
index 0000000..ebfa8b3
--- /dev/null
+++ b/layouts/partials/toc.html
@@ -0,0 +1,6 @@
+{{ if (.Params.toc) }}
+<aside>
+ <b>Table of Contents</b>
+ {{.TableOfContents}}
+</aside>
+{{ end }}