Skip to content

Commit 48638ad

Browse files
committed
do not show hidden page in product sidebar
1 parent debdac0 commit 48638ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: includes/sidebar-product.html

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<li>
1919
<ul class="sidebar-categories list-style-none">
2020
{% for childPage in currentProductTree.childPages %}
21+
{% unless childPage.page.hidden %}
2122
{% if childPage.page.documentType == "article" %}{% assign standaloneCategory = true %}{% else %}{% assign standaloneCategory = false %}{% endif %}
2223
<li class="sidebar-category py-1 {% if currentPath contains childPage.href %}active {% if currentPath == childPage.href %}is-current-page {% endif %}{% endif %}{% if standaloneCategory %}standalone-category{% endif %}">
2324
{% if childPage.renderedShortTitle %}{% assign childTitle = childPage.renderedShortTitle %}{% else %}{% assign childTitle = childPage.renderedFullTitle %}{% endif %}
@@ -67,6 +68,7 @@
6768
{% endif %}
6869
</details>
6970
</li>
71+
{% endunless %}
7072
{% endfor %}
7173
</ul>
7274
</li>

0 commit comments

Comments
 (0)