0%

参考文章知乎: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

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment