Skip to content

Commit

Permalink
Merge pull request #253 from idryzhov/favicon-logo-url
Browse files Browse the repository at this point in the history
Fix URL in html_logo and html_favicon
  • Loading branch information
pradyunsg authored Sep 22, 2021
2 parents 330035b + 93acd65 commit a48c7de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/furo/theme/furo/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
{%- endblock linktags %}

{# Favicon #}
{%- if favicon -%}
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
{%- if favicon_url -%}
<link rel="shortcut icon" href="{{ favicon_url }}"/>
{%- endif -%}

{#- Generator banner -#}
Expand Down
4 changes: 2 additions & 2 deletions src/furo/theme/furo/sidebar/brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
-#}
<a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
{% block brand_content %}
{%- if logo %}
{%- if logo_url %}
<div class="sidebar-logo-container">
<img class="sidebar-logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
<img class="sidebar-logo" src="{{ logo_url }}" alt="Logo"/>
</div>
{%- endif %}
{%- if theme_light_logo and theme_dark_logo %}
Expand Down

0 comments on commit a48c7de

Please sign in to comment.