Skip to content

Commit cfd3cb5

Browse files
remove toggle button for secondary sidebar if empty (#1637)
1 parent 5fc1452 commit cfd3cb5

File tree

1 file changed

+1
-1
lines changed
  • src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections

1 file changed

+1
-1
lines changed

src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
{% endfor %}
4141

42-
{% if not remove_sidebar_secondary %}
42+
{% if not remove_sidebar_secondary and secondary_sidebar_items %}
4343
<label class="sidebar-toggle secondary-toggle" for="__secondary" tabindex="0">
4444
<span class="fa-solid fa-outdent"></span>
4545
</label>

0 commit comments

Comments
 (0)