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

This commit is contained in:
Georg Brandl
2010-07-03 10:28:28 +02:00
parent 2cbaded701
commit b57c71b784

View File

@@ -14,7 +14,7 @@
{%- 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 %}