Change the favicon.
This commit is contained in:
@@ -76,9 +76,9 @@ def manifest() -> t.Any:
|
|||||||
"description": "This is an example description",
|
"description": "This is an example description",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/favicon.ico",
|
"src": "/favicon.png",
|
||||||
"sizes": "256x256",
|
"sizes": "256x256",
|
||||||
"type": "image/vnd.microsoft.icon",
|
"type": "image/png",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
@@ -89,9 +89,9 @@ def manifest() -> t.Any:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@home.get("/favicon.ico")
|
@home.get("/favicon.png")
|
||||||
@home.csp("img-src $self")
|
@home.csp("img-src $self")
|
||||||
@home.cache("30d")
|
@home.cache("30d")
|
||||||
def favicon() -> Response:
|
def favicon() -> Response:
|
||||||
"""Website icon"""
|
"""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
BIN
src/static/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% block title %}Untitled{% endblock %} - {{ request.host | escape }}</title>
|
<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 name="description" content="{% block description %}Description of an untitled page.{% endblock %}" />
|
||||||
<meta
|
<meta
|
||||||
|
|||||||
Reference in New Issue
Block a user