Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/toc.html')
-rw-r--r--layouts/partials/toc.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
new file mode 100644
index 0000000..1c6b5e0
--- /dev/null
+++ b/layouts/partials/toc.html
@@ -0,0 +1,10 @@
+{{ if (.Params.toc) }}
+<details class="toc" open>
+<summary>
+ <hr />
+</summary>
+<div class="inline toc-content">
+ {{.TableOfContents}}
+</div>
+</details>
+{{ end }} \ No newline at end of file