Attempted to fix favicon display

This commit is contained in:
2026-08-14 14:34:57 +01:00
parent 154d77e187
commit 0d544fdc8e
4 changed files with 6 additions and 2 deletions
+4
View File
@@ -9,6 +9,7 @@
"""invenio module for I-Form theme."""
from flask_babel import lazy_gettext as _
I18N_LANGUAGES = [
("en", _("English")),
("ga", _("Irish")),
@@ -53,6 +54,9 @@ THEME_500_TEMPLATE = "invenio_theme_iform/default_error.html"
THEME_LOGO = "images/iform_logo.png"
"""I-Form logo"""
THEME_FAVICON = "images/iform-favicon.ico"
"""I-Form favicon"""
THEME_SEARCHBAR = False
"""Enable or disable the header search bar."""

Before

Width:  |  Height:  |  Size: 330 KiB

After

Width:  |  Height:  |  Size: 330 KiB

@@ -39,7 +39,7 @@
<title>{{ title }}</title>
{%- endblock head_title %}
{%- block head_links %}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
<link rel="shortcut icon" href="{{ url_for('static', filename=config.THEME_FAVICON or 'images/iform-favicon.ico') }}" />
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
{%- block head_links_langs %}
{%- if alternate_urls %}
@@ -36,7 +36,7 @@
{%- endblock head_title %}
{%- block head_links %}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
<link rel="shortcut icon" href="{{ url_for('static', filename=config.THEME_FAVICON or 'images/iform-favicon.ico') }}" />
{%- if keywords %}
<link rel="canonical" href="{{ canonical_url }}" />