Beautify Hexo
30 May 2020
2 min read
Beautify Hexo
These are my method to make my blog better looked. Still working on it.
method
Click Number
- File path
\themes\next\layout\_partials\footer.njk - Add
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
before copyright
3. In class powered-by add
<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
Click Number:<span id="busuanzi_value_site_uv"></span>
</span>
pv for repeat counting uv for distinct counting
No Powered-by
- File path
\themes\next\layout\_partials\footer.njk - Comment html code in
powered-byby<!-- -->
Tag Icon
- File path
themes/next/layout/_macro/post.njk - Find
rel="tag" - Replace
#with<i class="fa fa-tag"></i>
Tips
Nothing in Tags page
- add
type: tagsin/source/tags/index.mdaftertitle
Hexo New “Post” Init
- File path
/scaffolds/post.md - Add for initializing every times
Delete A Post in Hexo
I surfed on the Internet, only to find that their method didn’t work for me.
My Problem
- Delete
mac-software - Repost it on May 31st
- Still taged as May 29th if set in the same file path
Common Solution
- Find file path
source/_post/article.md - Remove it
- Run
hexo clean && hexo g && hexo d
My Solution
If only need to change date posted, just modify the date at the top
All posts generated by Hexo will be as
YY/MM/DD/post
I didn’t find a absolutely prefect way for removing a post
Link Inside
It should be ./link
But in Hexo, it will be ../link
URL Setting
- Find file path
blog/_config.yml - Search
permalink - From
permalink: :year/:month/:day/:title/topermalink: :title/
404 in Tags or Categories
Reason
Change a part of tags or categories after generating
Solution
- File path
.deploy_git//.git/config - Find
ignorecase - From
truetofalse - Clean and generate
hexo clean
hexo d -g
Several Tags in One Article
tags: [HELLO, HEXO]
Several Lines in Description
description: "Hello first line<br>Hello second line"