Skip to content

Commit

Permalink
Merge pull request #12760 from marcellamaki/favicon-fix
Browse files Browse the repository at this point in the history
Update favicon to be available when the default theme is disabled
  • Loading branch information
rtibbles authored Oct 28, 2024
2 parents ecbd748 + 46a8a6d commit 9ed7697
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion kolibri/core/templatetags/core_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def theme_favicon():

# Choose the first available .ico file. It's unlikely there's more than
# one specified in the theme.
favicon_url = favicon_urls[0] if favicon_urls else static("assets/logo.ico")
favicon_url = (
favicon_urls[0] if favicon_urls else static("assets/favicons/logo.ico")
)

return format_html('<link rel="shortcut icon" href="{}">', favicon_url)

Expand Down
2 changes: 1 addition & 1 deletion kolibri/plugins/default_theme/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def theme(self):
},
"logos": [
{
"src": static("assets/default_theme/logo.ico"),
"src": static("assets/favicons/logo.ico"),
"content_type": "image/vnd.microsoft.icon",
"size": "32x32",
},
Expand Down

0 comments on commit 9ed7697

Please sign in to comment.