web/_posts/2019-08-11-customize-the-favicon.md
2021-01-09 23:05:55 +08:00

1.8 KiB

title author date categories tags toc
Customize the Favicon Cotes Chung 2019-08-11 00:34:00 +0800
Blogging
Tutorial
favicon
false

In Chirpy, the image files of Favicons are placed in assets/img/favicons/. You may need to replace them with your own. So let's see how to customize these Favicons.

With a square image (PNG, JPG or GIF) in hand, open the site Favicon & App Icon Generator and upload your original image.

upload-image

Click button Create Favicon and wait a moment for the website to generate the icons of various sizes automatically.

download-icons{: width="600"}

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

  • browserconfig.xml
  • manifest.json

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/.

The following table helps you understand the changes to the icon file:

✓ means keep, ✗ means delete.

File(s) From Favicon & App Icon Generator From Chirpy
*.PNG
*.ICO
browserconfig.xml
manifest.json

The next time you build the site, the icon will be replaced with a customized edition.