diff --git a/tool/template-sidebar_nav.html b/tool/template-sidebar_nav.html index d07d4d04cf..b615aef408 100644 --- a/tool/template-sidebar_nav.html +++ b/tool/template-sidebar_nav.html @@ -1,6 +1,11 @@
{% for cat in categories %} + {% set catpages = pages|selectattr("category", "equalto", cat)|list %} + {% if currentpage.doc_type is defined %} + {% set catpages = catpages|selectattr("doc_type", "equalto", currentpage.doc_type)|list %} + {% endif %} + {% if catpages|length %}