This line apparently intends that if the logo_url setting is unspecified in conf.py, then we fall back to the value of the logo setting from conf.py (with suitable _static/ prepend).
{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
But I don't think it works. It appears that if the logo_url setting is unspecified in conf.py, then it takes an empty string value here, and the default filter passes it through untouched. A fix would be to use or instead:
{%- set _logo_url = logo_url or pathto('_static/' + (logo or ""), 1) %}
This line apparently intends that if the
logo_url
setting is unspecified inconf.py
, then we fall back to the value of thelogo
setting fromconf.py
(with suitable_static/
prepend).But I don't think it works. It appears that if the
logo_url
setting is unspecified inconf.py
, then it takes an empty string value here, and thedefault
filter passes it through untouched. A fix would be to useor
instead:(Also
favicon_url
/favicon
here.)