From b8b525b213e6256513dce8ef20aa82889b4a63c2 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 23 Apr 2020 19:56:10 +0800 Subject: Initial commit Custom alabaster theme 3 blogposts and 2 metaposts Deployment script --- alabaster-lite/sidebars/toc.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 alabaster-lite/sidebars/toc.html (limited to 'alabaster-lite/sidebars/toc.html') diff --git a/alabaster-lite/sidebars/toc.html b/alabaster-lite/sidebars/toc.html new file mode 100644 index 0000000..cce0f4a --- /dev/null +++ b/alabaster-lite/sidebars/toc.html @@ -0,0 +1,28 @@ +{% macro _toc_tree_inner(toc) -%} + +{%- endmacro %} + +{% macro toc_tree(toc) -%} + {# This ignores H1s #} + {% for toc_item in toc %} + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} +{%- endmacro %} + + -- cgit v1.2.3