HEXO使用

官网:Hexo!
文档:documentation
FAQ:troubleshooting
反馈:GitHub

快速入门

创建文章

1
$ hexo new "My New Post"

更多: Writing

运行服务

1
$ hexo server

更多: Server

生成静态文件

1
$ hexo generate

更多: Generating

部署到远程服务器

1
$ hexo deploy

更多: Deployment

多语言支持

更多: https://pygments.org/docs/lexers/

创建新的分类

1
$ hexo new page categories

RSS插件

安装

1
$ npm install hexo-generator-feed

配置

1
2
3
4
5
6
7
8
# Extensions
plugins:
hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20

引用站内文章

1
{% post_link 文章文件名(不要后缀) 文章标题(可选) %}

安装图片支持

1
npm install https://github.com/CodeFalling/hexo-asset-image --save

安装加密

1
npm install --save hexo-blog-encrypt