惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
V
V2EX
Jina AI
Jina AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
量子位
L
LangChain Blog
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
腾讯CDC
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Customize Favicon for Hexo Blog in Theme NexT
2018-02-08 · via jdhao's digital space

Favicons are used widely in websites. Since you come to this post purposefully, I assume that you have a basic understanding of what favicon is. With Hexo, we can easily customize the favicon of our blog site. In this post, I will describe how to set up a custom favicon in theme NexT.

Convert your favorite image into favicon#

The first step is to convert your favorite image into favicon. You can use favicon generator,load your favorite image into this website, and click the button Create Favicon to generate favicons for your blog. Then download the generated favicons (see image below).

Create a favicon with only text#

If you want to create a favicon with only text. You should use favicon.io. It is simple to use. You can tweak the font type, font size, text box shape, color etc. Then you can download the 1024x1024 PNG image from the website and use favicon generator to generate various favicons.

Set up in theme NexT#

After you have generated the favicons, extract the zipped files, you will see a lot of files.

Go the blog root, under the source folder, create a folder named images. Copy the extracted files to this folder. Then edit the theme NexT configuration file (i.e., theme/next-new/_config.yml). Find the part about favicon and use the following settings,

favicon:
  small: images/favicon-16x16.png
  medium: images/favicon-32x32.png
  apple_touch_icon: images/apple-icon-180x180.png
  safari_pinned_tab:
  android_manifest: images/manifest.json
  ms_browserconfig: images/browserconfig.xml

Then deploy your blog to GitHub. You will see that your blog now has a custom favicon (see image below, favicon in the circle)~