Skip to content

Commit ebc2c11

Browse files
committed
only show the top-level TOC on product landing pages that use generic-toc
1 parent c3f4dcb commit ebc2c11

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

includes/generic-toc-items.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{% assign fullPath = tocItem.fullPath %}
66
{% assign intro = tocItem.intro %}
77

8-
{% if tocItem.childTocItems %}
8+
{% if tocItem.childTocItems and page.documentType != "product" %}
9+
910
<ul>
1011
<li>{% include liquid-tags/link %}
1112
<ul>
@@ -17,6 +18,7 @@
1718
</ul>
1819
</li>
1920
</ul>
21+
2022
{% else %}
2123

2224
{% include liquid-tags/link-with-intro %}

0 commit comments

Comments
 (0)