Skip to content

Commit

Permalink
rename version switcher layout file and only display if multiple perm…
Browse files Browse the repository at this point in the history
…alinks
  • Loading branch information
sarahs committed Apr 8, 2021
1 parent d5faed6 commit 12747b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!-- Versions picker that only appears in the header on homepage or product landing -->
{% if page.relativePath == 'index.md' or page.layout == 'product-landing' or page.layout == 'product-sublanding' %}
{% if page.permalinks and page.permalinks.length > 1 %}
<div class="d-md-inline-block">
<div class="border-top border-md-top-0 py-2 py-md-0 d-md-inline-block">
<details class="dropdown-withArrow position-relative details details-reset mr-md-3 close-when-clicked-outside">
Expand Down Expand Up @@ -27,3 +28,4 @@
</details>
</div>
{% endif %}
{% endif %}
4 changes: 2 additions & 2 deletions includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ <h4 class="text-mono f5 text-normal text-gray d-md-none">{% data ui.homepage.exp
</details>
</div>

<!-- Versions picker that only appears in the header on homepage/versioned homepages -->
{% include homepage-version-switcher %}
<!-- Versions picker that only appears in the header on landing pages -->
{% include header-version-switcher %}

<div class="d-md-inline-block">

Expand Down

0 comments on commit 12747b8

Please sign in to comment.