BattlefieldDuck

How to add favicon on Hexo Aomori

My version of hexo-theme-aomori is v1.22.0.

1. Generate favicon

Visit https://realfavicongenerator.net/ to generate your favicon and download the favicon package.

2. Extract package

Extract the favicon package and paste to source folder

3. Edit head.ejs

Go to themes/hexo-theme-aomori/layout/_partial and edit head.ejs

Paste the code inside the <head> block. Notice: Use the code from https://realfavicongenerator.net/

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

4. Start Hexo server

Start the Hexo server to see the changes. 👏

hexo server

本作品采用 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议 进行许可。