hexo 主题的安装(next)(5.1.*)
- 1、克隆(要在博客的根目录下):
1
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
- 2、更改
_config.yml
文件theme: next
- 3、主题设定
在主题的_config.yml
中,更改Scheme
- 4、设置语言
在默认_config.yml
中修改language: zh-Hans
- 5、设置菜单 注意:是
1
2
3
4
5
6menu:
home: /|| home
#about: /about/ || user
#tags: /tags/ || tags
#categories: /categories/ || th
archives: /archives/|| archivearchives: /archives/|| archive
而不是archives: /archives/ || archive
,/archives/
后面不能有空格
- 6、侧栏设置
1
2sidebar:
display: post
- 7、设置头像
1
avatar: /images/hexo.jpg
hexo.jpg
放在所选主题(next)的source/images
下
- 8、作者昵称和站点描述都在默认
_config.yml
中
- 9、隐藏主页的内容,即提供more按钮
1
2auto_excerpt:
enable: false
没了:)