Hello World

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

问题记录

生成的文件目录错乱

原因是Next主题解析机制是二级目录、三级目录的按级解析,如果文章中出现了跳级的情况就会出现文件目录错乱。修复办法就是使用层层递进的目录定义。

修改每页文章数量

在hexo的_config.yml中修改per_page配置项:

1
2
3
4
index_generator:
path: ''
per_page: 5
order_by: -date

Hello World
https://luischen.github.io/2016/05/26/hello-world/
作者
Luis Chen
发布于
2016年5月26日
许可协议