Skip to content

Commit

Permalink
FIX: use logo_url instead deprecated logo in theme if no theme_logo p…
Browse files Browse the repository at this point in the history
…rovided (pydata#1094)
  • Loading branch information
nicoa committed Jan 2, 2023
1 parent 13d4692 commit bf78285
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
{% endif %}
<a class="navbar-brand logo" href="{{ href }}">
{# get all the brand information from html_theme_option #}
{% set is_logo = logo or theme_logo.get("image_light") or theme_logo.get("image_dark") %}
{% set image_light = theme_logo.get("image_light") or logo %}
{% set image_dark = theme_logo.get("image_dark") or logo %}
{% set is_logo = logo_url or theme_logo.get("image_light") or theme_logo.get("image_dark") %}
{% set image_light = theme_logo.get("image_light") or logo_url %}
{% set image_dark = theme_logo.get("image_dark") or logo_url %}
{% set image_light = image_light if image_light.startswith("http") else pathto('_static/' + image_light, 1) %}
{% set image_dark = image_dark if image_dark.startswith("http") else pathto('_static/' + image_dark, 1) %}
{% set alt = theme_logo.get("alt_text", "Logo image") %}
Expand Down

0 comments on commit bf78285

Please sign in to comment.