diff --git a/_includes/sidebar.html b/_includes/sidebar.html index c6e37af..1bcbf45 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -22,15 +22,18 @@ Table of contents - - {% for section in site.data.toc %} - - {{ section.title }} - - {% endfor %} - + {{ section.title }} + {% if section.children %} + + {% for child in section.children %} + {{ child.title }} + {% endfor %} + + {% endif %}