Skip to content

Commit aa832c2

Browse files
authored
refactor: update favicon files and documentation (#2558)
1 parent 604528e commit aa832c2

15 files changed

+22
-34
lines changed

_includes/favicons.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@
55

66
{% capture favicon_path %}{{ '/assets/img/favicons' | relative_url }}{% endcapture %}
77

8+
<link rel="icon" type="image/png" href="{{ favicon_path }}/favicon-96x96.png" sizes="96x96">
9+
<link rel="icon" type="image/svg+xml" href="{{ favicon_path }}/favicon.svg">
10+
<link rel="shortcut icon" href="{{ favicon_path }}/favicon.ico">
811
<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">
1112
{% if site.pwa.enabled %}
1213
<link rel="manifest" href="{{ favicon_path }}/site.webmanifest">
1314
{% 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">

_posts/2019-08-11-customize-the-favicon.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,26 @@ The [favicons](https://www.favicon-generator.org/about/) of [**Chirpy**](https:/
1010

1111
## Generate the favicon
1212

13-
Prepare a square image (PNG, JPG, or SVG) with a size of 512x512 or more, and then go to the online tool [**Real Favicon Generator**](https://realfavicongenerator.net/) and click the button <kbd>Select your Favicon image</kbd> to upload your image file.
13+
Prepare a square image (PNG, JPG, or SVG) with a size of 512x512 or more, and then go to the online tool [**Real Favicon Generator**](https://realfavicongenerator.net/) and click the button <kbd>Pick your favicon image</kbd> to upload your image file.
1414

15-
In the next step, the webpage will show all usage scenarios. You can keep the default options, scroll to the bottom of the page, and click the button <kbd>Generate your Favicons and HTML code</kbd> to generate the favicon.
15+
In the next step, the webpage will show all usage scenarios. You can keep the default options, scroll to the bottom of the page, and click the button <kbd>Next →</kbd> to generate the favicon.
1616

1717
## Download & Replace
1818

19-
Download the generated package, unzip and delete the following two from the extracted files:
19+
Download the generated package, unzip and delete the following file(s) from the extracted files:
2020

21-
- `browserconfig.xml`{: .filepath}
2221
- `site.webmanifest`{: .filepath}
2322

24-
And then copy the remaining image files (`.PNG`{: .filepath} and `.ICO`{: .filepath}) to cover the original files in the directory `assets/img/favicons/`{: .filepath} of your Jekyll site. If your Jekyll site doesn't have this directory yet, just create one.
23+
And then copy the remaining image files (`.PNG`{: .filepath}, `.ICO`{: .filepath} and `.SVG`{: .filepath}) to cover the original files in the directory `assets/img/favicons/`{: .filepath} of your Jekyll site. If your Jekyll site doesn't have this directory yet, just create one.
2524

2625
The following table will help you understand the changes to the favicon files:
2726

28-
| File(s) | From Online Tool | From Chirpy |
29-
|---------------------|:---------------------------------:|:-----------:|
30-
| `*.PNG` |||
31-
| `*.ICO` |||
27+
| File(s) | From Online Tool | From Chirpy |
28+
| ------- | :--------------: | :---------: |
29+
| `*.PNG` |||
30+
| `*.ICO` |||
31+
| `*.SVG` |||
32+
3233

3334
<!-- markdownlint-disable-next-line -->
3435
> ✓ means keep, ✗ means delete.
-19.5 KB
Binary file not shown.
-61.1 KB
Binary file not shown.

assets/img/favicons/apple-touch-icon.png

100644100755
4.4 KB
Loading

assets/img/favicons/browserconfig.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.
-1.22 KB
Binary file not shown.
-2.26 KB
Binary file not shown.
8.64 KB
Loading

assets/img/favicons/favicon.ico

100644100755
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)