summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/components/toc/toc.html
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2020-01-11 23:45:58 +0100
committerYehonal <yehonal.azeroth@gmail.com>2020-01-11 23:45:58 +0100
commita81a933ab806dabbc6720d98f470c6a5edcd9a15 (patch)
tree6340a4ced8b8517e567c8a02746c8673caf5717f /_includes/git-wiki/components/toc/toc.html
parent2b94ffd1e14066696f3cb7e7286a5e2425561df8 (diff)
downloadwiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.tar.gz
wiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.tar.bz2
wiki-a81a933ab806dabbc6720d98f470c6a5edcd9a15.zip
implemented static TOC #57
Thanks to @vzickus for the suggestion
Diffstat (limited to '_includes/git-wiki/components/toc/toc.html')
-rw-r--r--_includes/git-wiki/components/toc/toc.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/git-wiki/components/toc/toc.html b/_includes/git-wiki/components/toc/toc.html
new file mode 100644
index 0000000..c354b42
--- /dev/null
+++ b/_includes/git-wiki/components/toc/toc.html
@@ -0,0 +1,12 @@
+{% if site.inc_before_toc %}
+{% include {{ site.inc_before_toc }} %}
+{% endif %}
+
+<div>
+ <p>Contents:</p>
+ {% include git-wiki/components/toc/toc-lib.html html=content sanitize=true class="inline_toc" id="git-wiki-toc" h_min=1 h_max=3 ordered=1 %}
+</div>
+
+{% if site.inc_after_toc %}
+{% include {{ site.inc_after_toc }} %}
+{% endif %}