From cfd3cb5225195d7652056da632e4cb652cfa96f7 Mon Sep 17 00:00:00 2001 From: Pierre Marchand Date: Thu, 18 Jan 2024 22:11:54 +0100 Subject: [PATCH] remove toggle button for secondary sidebar if empty (#1637) --- .../theme/pydata_sphinx_theme/sections/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html index 01744a812..fd258b309 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html @@ -39,7 +39,7 @@ {% endfor %} - {% if not remove_sidebar_secondary %} + {% if not remove_sidebar_secondary and secondary_sidebar_items %}