next主题详细配置

参考文章知乎:hexo+next个性化配置

主要功能

支持字数统计,访问量统计,同时next主题有大量的第三方插件可以使用

新特性

阅读next官方文档 Configuration 时发现一个新特性,将theme源文件的_config.yml复制到项目根目录,重命名为_config.next.yml的文件,修改该文件即可对主题进行配置

这样做的好处是可以不更改theme文件

1
2
3
4
# Installed through npm
$ cp node_modules/hexo-theme-next/_config.yml _config.next.yml
# Installed through Git
$ cp theme/next/_config.yml _config.next.yml