(备忘) Hexo+Next 配置
这是第N次配置 Hexo 了,轻车熟路,知道自己要干什么,记录一下,以备不时之需。
依赖软件
1. Nodejs
2. Git
Hexo
安装
1 | # 安装 Hexo 工具 |
命令
1 | # 开始写作 |
Hexo 配置 (根目录下 _config.yml )
- 主要用于个性化配置,
- 参考: 配置 | Hexo
Next 主题
NexT:
- next-theme/hexo-theme-next: 🎉 Elegant and powerful theme for Hexo.
应用主题步骤(Hexo > 5.0)1
2
3
4# 进入 blog 文件夹
cd bolg
# 下载主题
git clone https://github.com/next-theme/hexo-theme-next themes/next
个性化 Next 配置 (以根目录下 _config.next.yml 为主)
1 | # 为防止冲突覆盖,不建议直接修改配置文件,接下来的修改都在 _config.next.yml |
- 配置参考: Getting Started | NexT
安装完成后,修改_config.yml内的theme设定为 next,即可应用主题。
Tips:
Hexo 和 Next 提供的定制化已经满足需求,目前并未引入其他外部插件。
调整样式,读起来舒服就行。