diff options
Diffstat (limited to 'docs/_includes/nav-left.html')
-rw-r--r-- | docs/_includes/nav-left.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/_includes/nav-left.html b/docs/_includes/nav-left.html new file mode 100644 index 0000000000..73176f4132 --- /dev/null +++ b/docs/_includes/nav-left.html @@ -0,0 +1,17 @@ +{% assign navurl = page.url | remove: 'index.html' %} +<ul> +{% for item in include.nav %} + <li> + <a href="{{ item.url }}"> + {% if navurl contains item.url %} + <b>{{ item.text }}</b> + {% else %} + {{ item.text }} + {% endif %} + </a> + </li> + {% if item.subitems and navurl contains item.url %} + {% include nav-left.html nav=item.subitems %} + {% endif %} +{% endfor %} +</ul> |