1
0
mirror of synced 2025-12-26 05:02:55 -05:00

only show the top-level TOC on product landing pages that use generic-toc

This commit is contained in:
Sarah Schneider
2021-04-20 12:49:37 -04:00
parent c3f4dcb368
commit ebc2c11013

View File

@@ -5,7 +5,8 @@
{% assign fullPath = tocItem.fullPath %}
{% assign intro = tocItem.intro %}
{% if tocItem.childTocItems %}
{% if tocItem.childTocItems and page.documentType != "product" %}
<ul>
<li>{% include liquid-tags/link %}
<ul>
@@ -17,6 +18,7 @@
</ul>
</li>
</ul>
{% else %}
{% include liquid-tags/link-with-intro %}