Skip to content

Commit 7d762f2

Browse files
authored
Change favicon (#476)
Use https://realfavicongenerator.net/your-favicon-is-ready to generate different types
1 parent 781df59 commit 7d762f2

File tree

8 files changed

+167
-0
lines changed

8 files changed

+167
-0
lines changed

_includes/favicons.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!--
2+
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
3+
Generated by: https://realfavicongenerator.net/
4+
-->
5+
6+
{% capture favicon_path %}{{ '/assets/img/favicons' | relative_url }}{% endcapture %}
7+
8+
<link rel="apple-touch-icon" sizes="180x180" href="{{ favicon_path }}/apple-touch-icon.png">
9+
<link rel="icon" type="image/png" sizes="32x32" href="{{ favicon_path }}/favicon-32x32.png">
10+
<link rel="icon" type="image/png" sizes="16x16" href="{{ favicon_path }}/favicon-16x16.png">
11+
{% if site.pwa.enabled %}
12+
<link rel="manifest" href="{{ favicon_path }}/site.webmanifest">
13+
{% endif %}
14+
<link rel="shortcut icon" href="{{ favicon_path }}/favicon.ico">
15+
<meta name="apple-mobile-web-app-title" content="{{ site.title }}">
16+
<meta name="application-name" content="{{ site.title }}">
17+
<meta name="msapplication-TileColor" content="#da532c">
18+
<meta name="msapplication-config" content="{{ favicon_path }}/browserconfig.xml">
19+
<meta name="theme-color" content="#ffffff">
3.92 KB
Loading
12.3 KB
Loading
3.61 KB
Loading

assets/img/favicons/favicon-96x96.png

2.28 KB
Loading

assets/img/favicons/favicon.ico

14.7 KB
Binary file not shown.

assets/img/favicons/favicon.svg

Lines changed: 119 additions & 0 deletions
Loading

assets/img/favicons/site.webmanifest

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: compress
3+
---
4+
5+
{% assign favicon_path = "/assets/img/favicons" | relative_url %}
6+
7+
{
8+
"name": "{{ site.title }}",
9+
"short_name": "{{ site.title }}",
10+
"description": "{{ site.description }}",
11+
"icons": [
12+
{
13+
"src": "{{ favicon_path }}/android-chrome-192x192.png",
14+
"sizes": "192x192",
15+
"type": "image/png",
16+
"purpose": "maskable"
17+
},
18+
{
19+
"src": "{{ favicon_path }}/android-chrome-512x512.png",
20+
"sizes": "512x512",
21+
"type": "image/png",
22+
"purpose": "maskable"
23+
}
24+
],
25+
"start_url": "{{ '/index.html' | relative_url }}",
26+
"theme_color": "#ffffff",
27+
"background_color": "#ffffff",
28+
"display": "fullscreen"
29+
}

0 commit comments

Comments
 (0)