Skip to content

Commit 4271f73

Browse files
committed
change conditional to reference layout instead of relativePath
1 parent 6a5305f commit 4271f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/homepage-version-switcher.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Versions picker that only appears in the header on homepage or product landing -->
2-
{% if page.relativePath == 'index.md' or allProducts[currentProduct].toc contains page.relativePath %}
2+
{% if page.relativePath == 'index.md' or page.layout == 'product-landing' or page.layout == 'product-sublanding' %}
33
<div class="d-md-inline-block">
44
<div class="border-top border-md-top-0 py-2 py-md-0 d-md-inline-block">
55
<details class="dropdown-withArrow position-relative details details-reset mr-md-3 close-when-clicked-outside">

0 commit comments

Comments
 (0)