Skip to content

Commit 560f5d8

Browse files
committed
Conditionally adding toggle sidebar button if there are sidebars to show
1 parent 7c3c21e commit 560f5d8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
<button class="sidebar-toggle primary-toggle btn btn-sm" title="Toggle primary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
1+
{% if sidebars %}
2+
<button
3+
class="sidebar-toggle primary-toggle btn btn-sm"
4+
title="Toggle primary sidebar"
5+
data-bs-placement="bottom"
6+
data-bs-toggle="tooltip"
7+
>
28
<span class="fa-solid fa-bars"></span>
39
</button>
10+
{% endif %}

0 commit comments

Comments
 (0)