aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/post/toc.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post/toc.html')
-rw-r--r--layouts/partials/post/toc.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/partials/post/toc.html b/layouts/partials/post/toc.html
new file mode 100644
index 0000000..7921065
--- /dev/null
+++ b/layouts/partials/post/toc.html
@@ -0,0 +1,8 @@
+{{ if and .Site.Params.toc (ne .Params.toc false) }}
+<div class="post-toc" id="post-toc">
+ <h2 class="post-toc-title">{{ .Site.Data.even.default.posts.toc }}</h2>
+ <div class="post-toc-content">
+ {{.TableOfContents}}
+ </div>
+</div>
+{{- end }} \ No newline at end of file