1.9 KiB
title | author | date | categories | tags | |||
---|---|---|---|---|---|---|---|
Customize the Favicon | Cotes Chung | 2019-08-11 00:34:00 +0800 |
|
|
The favicons of 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.
Generate the favicon
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 and click button Select your Favicon image to upload your image file.
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 Generate your Favicons and HTML code to generate the favicon.
Download & Replace
Download the generated package, unzip and delete the following two from the extracted files:
browserconfig.xml
site.webmanifest
Now, copy the remaining image files (PNG
and ICO
) to cover the original files in the folder assets/img/favicons/
of your Jekyll site.
The following table will helps you understand the changes to the favicon files:
File(s) | From Online Tool | From Chirpy |
---|---|---|
*.PNG |
✓ | ✗ |
*.ICO |
✓ | ✗ |
browserconfig.xml |
✗ | ✓ |
site.webmanifest |
✗ | ✓ |
Note: ✓ means keep, ✗ means delete.
The next time you build the site, the favicon will be replaced with a customized edition.