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
- Addbefore
1
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
copyright
- In class
powered-by
add1
2
3<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-by
by<!-- -->
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: tags
in/source/tags/index.md
aftertitle
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
true
tofalse
- Clean and generate
1
2hexo clean
hexo d -g
Several Tags in One Article
1 | tags: [HELLO, HEXO] |
Several Lines in Description
1 | description: "Hello first line<br>Hello second line" |