You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html
+2-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
{%- extends "basic/layout.html" %}
8
8
{%- import "static/webpack-macros.html" as _webpack with context %}
9
9
{# A flag for whether we include a secondary sidebar based on the page metadata #}
10
-
{% set remove_sidebar_secondary = (meta is defined and meta is not none and 'html_theme.sidebar_secondary.remove' in meta) or not theme_secondary_sidebar_items %}
10
+
{# Note: secondary_sidebar_items is an array set by set_secondary_sidebar_items() in utils.py #}
11
+
{% set remove_sidebar_secondary = (meta is defined and meta is not none and 'html_theme.sidebar_secondary.remove' in meta) or secondary_sidebar_items|length == 0 %}
11
12
{%- block css %}
12
13
{# The data-cfasync attribute disables CloudFlare's Rocket loader so that #}
13
14
{# mode/theme are correctly set before the browser renders the page. #}
0 commit comments