Skip to content

Commit 4d7f5ad

Browse files
authored
Add comprehensive favicon support (#2007)
1 parent d21b571 commit 4d7f5ad

9 files changed

Lines changed: 34 additions & 4 deletions

File tree

3.33 KB
Loading
10.2 KB
Loading

static/img/apple-touch-icon.png

3.13 KB
Loading

static/img/favicon.ico

15 KB
Binary file not shown.

static/img/favicon.png

992 Bytes
Loading

static/img/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

static/img/site.webmanifest

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Boost C++ Libraries",
3+
"short_name": "Boost",
4+
"icons": [
5+
{
6+
"src": "/static/img/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/static/img/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#FAFAFA",
17+
"background_color": "#FFFFFF",
18+
"display": "standalone"
19+
}

templates/admin/library_report_base.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
<meta name="keywords" content="{% block keywords %}{% endblock %}" />
1616
<meta name="author"
1717
content="{% block author %}Boost C++ Libraries{% endblock %}" />
18-
<link rel="shortcut icon"
19-
href="{% static 'img/Boost_Symbol_Transparent.svg' %}"
20-
type="image/x-icon" />
18+
<link rel="icon" href="{% static 'img/favicon.svg' %}" type="image/svg+xml">
19+
<link rel="icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon" sizes="any">
20+
<link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" sizes="48x48">
21+
<link rel="shortcut icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon">
22+
<link rel="apple-touch-icon" href="{% static 'img/apple-touch-icon.png' %}">
23+
<link rel="manifest" href="{% static 'img/site.webmanifest' %}">
2124
<link rel="preconnect" href="https://fonts.googleapis.com">
2225
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2326
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap"

templates/base.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
<meta name="description" content="{% block description %}{% endblock %}">
1818
<meta name="keywords" content="{% block keywords %}{% endblock %}">
1919
<meta name="author" content="{% block author %}Boost C++ Libraries{% endblock %}">
20-
<link rel="shortcut icon" href="{% static 'img/Boost_Symbol_Transparent.svg' %}" type="image/x-icon">
20+
<link rel="icon" href="{% static 'img/favicon.svg' %}" type="image/svg+xml">
21+
<link rel="icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon" sizes="any">
22+
<link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" sizes="48x48">
23+
<link rel="shortcut icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon">
24+
<link rel="apple-touch-icon" href="{% static 'img/apple-touch-icon.png' %}">
25+
<link rel="manifest" href="{% static 'img/site.webmanifest' %}">
2126

2227
<meta class="meta-theme" name="theme-color" content="#FAFAFA" data-dark="#18181B" data-light="#FAFAFA">
2328
<meta class="meta-theme" name="color-scheme" content="light" data-dark="dark" data-light="light">

0 commit comments

Comments
 (0)