Skip to content

Commit 6d254af

Browse files
committed
Simplify the favicons
1 parent a4dc39f commit 6d254af

38 files changed

+68
-125
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ The old saying, "Two heads are better than one." Consequently, welcome to report
189189

190190
## Credits
191191

192-
This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Bootstrap](https://getbootstrap.com/), [Font Awesome](https://fontawesome.com/) and some other wonderful tools (their copyright information can be found in the relevant files).
192+
This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Bootstrap](https://getbootstrap.com/), [Font Awesome](https://fontawesome.com/) and some other wonderful tools (their copyright information can be found in the relevant files). The avatar and favicon design comes from [Clipart Max](https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/).
193193

194194
:tada: Thanks to all the volunteers who contributed to this project, their GitHub IDs are on [this list](https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors). Also, I won't forget those guys who submitted the issues or unmerged PR because they reported bugs, shared ideas, or inspired me to write more readable documentation.
195195

_includes/favicons.html

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
<!--
22
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
3-
Generated by: https://www.favicon-generator.org/
3+
Generated by: https://realfavicongenerator.net/
44
-->
55

6-
{% capture icon_url %}{{ site.baseurl }}/assets/img/favicons{% endcapture %}
6+
{% capture favicon_path %}{{ '/assets/img/favicons' | relative_url }}{% endcapture %}
77

8-
<link rel="shortcut icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
9-
<link rel="icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
10-
11-
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon.png">
12-
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon-precomposed.png">
13-
<link rel="apple-touch-icon" sizes="57x57" href="{{ icon_url }}/apple-icon-57x57.png">
14-
<link rel="apple-touch-icon" sizes="60x60" href="{{ icon_url }}/apple-icon-60x60.png">
15-
<link rel="apple-touch-icon" sizes="72x72" href="{{ icon_url }}/apple-icon-72x72.png">
16-
<link rel="apple-touch-icon" sizes="76x76" href="{{ icon_url }}/apple-icon-76x76.png">
17-
<link rel="apple-touch-icon" sizes="114x114" href="{{ icon_url }}/apple-icon-114x114.png">
18-
<link rel="apple-touch-icon" sizes="120x120" href="{{ icon_url }}/apple-icon-120x120.png">
19-
<link rel="apple-touch-icon" sizes="144x144" href="{{ icon_url }}/apple-icon-144x144.png">
20-
<link rel="apple-touch-icon" sizes="152x152" href="{{ icon_url }}/apple-icon-152x152.png">
21-
<link rel="apple-touch-icon" sizes="180x180" href="{{ icon_url }}/apple-icon-180x180.png">
22-
23-
<link rel="icon" type="image/png" sizes="192x192" href="{{ icon_url }}/android-icon-192x192.png">
24-
<link rel="icon" type="image/png" sizes="32x32" href="{{ icon_url }}/favicon-32x32.png">
25-
<link rel="icon" type="image/png" sizes="96x96" href="{{ icon_url }}/favicon-96x96.png">
26-
<link rel="icon" type="image/png" sizes="16x16" href="{{ icon_url }}/favicon-16x16.png">
27-
28-
<link rel="manifest" href="{{ icon_url }}/manifest.json">
29-
<meta name='msapplication-config' content='{{ icon_url }}/browserconfig.xml'>
30-
<meta name="msapplication-TileColor" content="#ffffff">
31-
<meta name="msapplication-TileImage" content="{{ icon_url }}/ms-icon-144x144.png">
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+
<link rel="manifest" href="{{ favicon_path }}/site.webmanifest">
12+
<link rel="shortcut icon" href="{{ favicon_path }}/favicon.ico">
13+
<meta name="apple-mobile-web-app-title" content="{{ site.title }}">
14+
<meta name="application-name" content="{{ site.title }}">
15+
<meta name="msapplication-TileColor" content="#da532c">
16+
<meta name="msapplication-config" content="{{ favicon_path }}/browserconfig.xml">
3217
<meta name="theme-color" content="#ffffff">

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

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,34 @@ author: Cotes Chung
44
date: 2019-08-11 00:34:00 +0800
55
categories: [Blogging, Tutorial]
66
tags: [favicon]
7-
toc: false
87
---
98

10-
In [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/), the image files of [Favicons](https://www.favicon-generator.org/about/) are placed in `assets/img/favicons/`. You may need to replace them with your own. So let's see how to customize these Favicons.
9+
The [favicons](https://www.favicon-generator.org/about/) of [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/) are placed in the directory `assets/img/favicons/`. You may need to replace them with your own. The following sections will guide you how to create and replace the default favicons.
1110

12-
With a square image (PNG, JPG or GIF) in hand, open the site [*Favicon & App Icon Generator*](https://www.favicon-generator.org/) and upload your original image.
11+
## Generate the favicon
1312

14-
![upload-image](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190811/upload-image.png)
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 button <kbd>Select your Favicon image</kbd> to upload your image file.
1514

16-
Click button <kbd>Create Favicon</kbd> and wait a moment for the website to generate the icons of various sizes automatically.
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.
1716

18-
![download-icons](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190811/download-icons.png){: width="600"}
17+
## Download & Replace
1918

2019
Download the generated package, unzip and delete the following two from the extracted files:
2120

22-
- browserconfig.xml
23-
- manifest.json
21+
- `browserconfig.xml`
22+
- `site.webmanifest`
2423

25-
Now, copy the remaining image files (`.PNG` and `.ICO`) from the extracted `.zip` file to cover the original files in the folder `assets/img/favicons/`.
24+
Now, copy the remaining image files (`PNG` and `ICO`) to cover the original files in the folder `assets/img/favicons/` of your Jekyll site.
2625

27-
The following table helps you understand the changes to the icon file:
26+
The following table will helps you understand the changes to the favicon files:
2827

29-
> ✓ means keep, ✗ means delete.
30-
31-
| File(s) | From Favicon & App Icon Generator | From Chirpy |
28+
| File(s) | From Online Tool | From Chirpy |
3229
|---------------------|:---------------------------------:|:-----------:|
3330
| `*.PNG` |||
3431
| `*.ICO` |||
3532
| `browserconfig.xml` |||
36-
| `manifest.json` |||
33+
| `site.webmanifest` |||
3734

35+
> Note: ✓ means keep, ✗ means delete.
3836
39-
The next time you build the site, the icon will be replaced with a customized edition.
37+
The next time you build the site, the favicon will be replaced with a customized edition.

_sass/addon/commons.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ footer {
416416

417417
} // a
418418

419-
420419
ul {
421420
// attribute 'hide-bullet' was added by liquid
422421
.task-list-item[hide-bullet] {
19.5 KB
Loading
61.1 KB
Loading
-15.4 KB
Binary file not shown.
-20.8 KB
Binary file not shown.
-2.86 KB
Binary file not shown.
-3.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)