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

29 lines
1 KiB
Markdown
Raw Normal View History

2019-09-30 15:38:58 +03:00
---
title: "Customize the Favicon"
date: 2019-08-11 00:34:00 +0800
categories: [Blogging, Tutorial]
tags: [favicon]
toc: false
---
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.
Whit 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.
![upload-image]({{ site.baseurl }}/assets/img/sample/upload-image.png)
2019-10-11 19:46:12 +03:00
Click button <kbd>Create Favicon</kbd> and wait a moment for the website to generate the icons of various sizes automatically.
2019-09-30 15:38:58 +03:00
![download-icons]({{ site.baseurl }}/assets/img/sample/download-icons.png)
2019-10-11 19:46:12 +03:00
Download the generated package and extract, then remove the following two of them:
2019-10-10 19:06:18 +03:00
- browserconfig.xml
- manifest.json
2019-10-11 19:46:12 +03:00
Now, copy the rest (`.PNG` and `.ICO`) to cover the original files in folder `assets/img/favicons`.
2019-10-10 19:06:18 +03:00
2019-10-11 19:46:12 +03:00
In the end, rebuild your site so that the icon becomes your custom edition.
2019-10-10 19:06:18 +03:00
2019-09-30 15:38:58 +03:00