Hexo Theme Next
NextT is a high quality elegant Hexo theme. I used it in this Blog.
1 Install NextT
1) Install NextT
Download NextT files to theme
# change to your hexo folder (it is blog in my case) |
2) Set Hexo Theme to NextT
Hint:
- The
_config.yml
file inblog
folder is calledhexo-config.yml
in my article.
After chagehexo-config.yml
, we need restart server- The
_config.yml
file intheme
folder is callednext-config.yml
in my article.
We don't need to restart server after chagenext-config.yml
Open hexo-config.yml
, find theme
, change it to next
theme: next |
Now, we installed NextT successfully.
Let us start server and check our blog in browse
#generate the static files (html, css, etc) for your website |
We can see the new theme.
2. NextT Setting
Those are changes I set in my blog
1) WebStie informations Setting
open hexo-config.yml
# Site |
2) Scheme Setting
open next-config.yml
, search Schemes
# Schemes |
3) Menu Setting
- open
next-config.yml
, search menu
menu: |
we have about, tags, categories menu items now, but we don't have markdown file associated to them.
- create new pages
hexo new page "about" |
4) Search Function
A search function can help you manage your blog better.
- install hexo-generator-searchdb
npm install hexo-generator-searchdb --save |
- add the flowing code to the end of
hexo-config.yml
search: |
- open
next-config.yml
, search local_search
# Local search |
5) Social Links
open next-config.yml
, search social
social: |
6) Highlight Codebook
Go to
config.yml
inHexo
, deletewrap
andhljs
highlight:
enable: true
line_number: false
auto_detect: false
tab_replace: ''
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''Go to
config.yml
inNext
codeblock:
# Code Highlight theme
# All available themes: https://theme-next.js.org/highlight/
theme:
light: routeros
dark: rainbow
prism:
light: prism
dark: prism-dark
# Add copy button on codeblock
copy_button:
enable: true
# Available values: default | flat | mac
style: mac
That is all features I used in my blog, If you find more exciting features, Please share to me