diff --git a/src/pbpl/views/home.py b/src/pbpl/views/home.py index 5adfe1a..acbe43f 100644 --- a/src/pbpl/views/home.py +++ b/src/pbpl/views/home.py @@ -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") diff --git a/src/static/favicon.ico b/src/static/favicon.ico deleted file mode 100644 index a169a96..0000000 Binary files a/src/static/favicon.ico and /dev/null differ diff --git a/src/static/favicon.png b/src/static/favicon.png new file mode 100644 index 0000000..0859c52 Binary files /dev/null and b/src/static/favicon.png differ diff --git a/src/templates/base.j2 b/src/templates/base.j2 index bf93fec..612c20b 100644 --- a/src/templates/base.j2 +++ b/src/templates/base.j2 @@ -6,7 +6,7 @@ {% block title %}Untitled{% endblock %} - {{ request.host | escape }} - +