Hexo Next Theme Configuration
Overview
The blog I just built using Hexo
is still pretty rough. There are lot features came with the next
theme that can be enabled with one line of code to make this blog more robust. I will go over details about menu settings, social media link settings, footer settings, etc.
Basic configuration
Menu Setting
Open _config.uml
file under blog/themes/next/_config.yml
. Uncomment the setting under menu section to enable features such as home, tags, about, etc.
1 | # Usage: `Key: /link/ || icon` |
Create the according blog pages using hexo
.
1 | $ cd blog |
Add Tags
Open blog/source/tags/index.md
file, by default it looks like below:
1 | --- |
Add type: tags
so it looks like:
1 | --- |
Go to a post article that want to add tags for, add a single tag: test
or add multiple tags tag: [test1, test2]
.
Go to Tags
Page on the menu, the tags show up successfully.
Add Categories
Very similar to tags
, add type: categories
to blog/source/categories/index.md
file so it looks like:
1 | --- |
Go to a post article header section and add categories: Hexo
, now you have category set up as well.