Change the favicon.

This commit is contained in:
purplebored committed 2025-10-23 21:45:54 +02:00
1 parent 53c1c94f83
commit 1911daa2ec
4 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -76,9 +76,9 @@ def manifest() -> t.Any:
"description": "This is an example description",
"icons": [
{
"src": "/favicon.ico",
"src": "/favicon.png",
"sizes": "256x256",
"type": "image/vnd.microsoft.icon",
"type": "image/png",
}
],
"start_url": ".",
@@ -89,9 +89,9 @@ def manifest() -> t.Any:
)
@home.get("/favicon.ico")
@home.get("/favicon.png")
@home.csp("img-src $self")
@home.cache("30d")
def favicon() -> Response:
"""Website icon"""
return flask.send_from_directory("static", "favicon.ico")
return flask.send_from_directory("static", "favicon.png")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Untitled{% endblock %} - {{ request.host | escape }}</title>
<link rel="icon" href="{{ url_for("home.favicon") }}" sizes="128x128" type="image/vnd.microsoft.icon" />
<link rel="icon" href="{{ url_for("home.favicon") }}" sizes="128x128" type="image/png" />
<meta name="description" content="{% block description %}Description of an untitled page.{% endblock %}" />
<meta