Skip to content

Commit bf78285

Browse files
committed
FIX: use logo_url instead deprecated logo in theme if no theme_logo provided (pydata#1094)
1 parent 13d4692 commit bf78285

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-logo.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
{% endif %}
88
<a class="navbar-brand logo" href="{{ href }}">
99
{# get all the brand information from html_theme_option #}
10-
{% set is_logo = logo or theme_logo.get("image_light") or theme_logo.get("image_dark") %}
11-
{% set image_light = theme_logo.get("image_light") or logo %}
12-
{% set image_dark = theme_logo.get("image_dark") or logo %}
10+
{% set is_logo = logo_url or theme_logo.get("image_light") or theme_logo.get("image_dark") %}
11+
{% set image_light = theme_logo.get("image_light") or logo_url %}
12+
{% set image_dark = theme_logo.get("image_dark") or logo_url %}
1313
{% set image_light = image_light if image_light.startswith("http") else pathto('_static/' + image_light, 1) %}
1414
{% set image_dark = image_dark if image_dark.startswith("http") else pathto('_static/' + image_dark, 1) %}
1515
{% set alt = theme_logo.get("alt_text", "Logo image") %}

0 commit comments

Comments
 (0)