diff --git a/includes/homepage-version-switcher.html b/includes/header-version-switcher.html similarity index 95% rename from includes/homepage-version-switcher.html rename to includes/header-version-switcher.html index 90a05039bf..1b40ea7ae1 100644 --- a/includes/homepage-version-switcher.html +++ b/includes/header-version-switcher.html @@ -1,5 +1,6 @@ {% if page.relativePath == 'index.md' or page.layout == 'product-landing' or page.layout == 'product-sublanding' %} +{% if page.permalinks and page.permalinks.length > 1 %}
{% endif %} +{% endif %} diff --git a/includes/header.html b/includes/header.html index c971cd6d5b..7ac09186f6 100644 --- a/includes/header.html +++ b/includes/header.html @@ -46,8 +46,8 @@
- - {% include homepage-version-switcher %} + + {% include header-version-switcher %}