Commits

Georg Brandl committed 3fed334

Small logic fix to work around precedence bug in Jinja 2.1.x.

  • Participants
  • Parent commits b353aba

Comments (0)

Files changed (1)

sphinx/themes/basic/layout.html

 {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}
 {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
 {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
-                         (not sidebars == []) %}
+                         (sidebars != []) %}
 {%- set url_root = pathto('', 1) %}
 {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}