Change the favicon.

This commit is contained in:
2025-10-23 21:45:54 +02:00
parent 53c1c94f83
commit 1911daa2ec
4 changed files with 5 additions and 5 deletions

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

BIN
src/static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

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