aboutsummaryrefslogtreecommitdiffstats
path: root/site/_includes/toc_recursive_dropdown.html
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-08 12:39:57 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-10 14:53:01 +0100
commitc530e84843444a40804e0c2b038c2ec53fe411b2 (patch)
tree1a9eebf49fd85027ba472bad8c178d686bad8d56 /site/_includes/toc_recursive_dropdown.html
webdocs-agl: added developer website template
Change-Id: I4a45ee0ad5dd0c29a6d6876a0e02cd5550c010e9 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/_includes/toc_recursive_dropdown.html')
-rw-r--r--site/_includes/toc_recursive_dropdown.html13
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 %}