Skip to content

Commit

Permalink
use favicon from config file in base.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurnewase committed Sep 17, 2022
1 parent 6e8cad3 commit 0218d44
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion superset/templates/superset/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@

{% block head_css %}
{{ super() }}
<link rel="icon" type="image/png" href="{{ assets_prefix }}/static/assets/images/favicon.png">
<!-- <link rel="icon" type="image/png" href="{{ assets_prefix }}/static/assets/images/favicon.png"> -->
{% set favicons = appbuilder.app.config['FAVICONS'] %}
{% for favicon in favicons %}
<link
rel="{{favicon.rel if favicon.rel else "icon"}}"
type="{{favicon.type if favicon.type else "image/png"}}"
{% if favicon.sizes %}sizes={{favicon.sizes}}{% endif %}
href="{{ "" if favicon.href.startswith("http") else assets_prefix }}{{favicon.href}}"
>
{% endfor %}
{{ css_bundle("theme") }}
{% endblock %}

Expand Down

0 comments on commit 0218d44

Please sign in to comment.