diff options
Diffstat (limited to 'site/_includes/toc_recursive_dropdown.html')
-rw-r--r-- | site/_includes/toc_recursive_dropdown.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/site/_includes/toc_recursive_dropdown.html b/site/_includes/toc_recursive_dropdown.html new file mode 100644 index 0000000..b0983e1 --- /dev/null +++ b/site/_includes/toc_recursive_dropdown.html @@ -0,0 +1,13 @@ + +{% for entry in include.entries %} +{% if entry.url != null %} +<li> + <a class="{% if include.my_entry == entry.url %}this-page{% endif %}" href="{{ include.version_root }}{{ entry.url }}"> + {{ entry.name }} + </a> +</li> +{% endif %} +{% if entry.children %} +{% include toc_recursive_dropdown.html entries=entry.children my_entry=include.my_entry version_root=version_root %} +{% endif %} +{% endfor %} |