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.

快速、簡單且強大的網誌框架

Hexo

Quick Start

1
2
3
4
5
$ npm install hexo-cli -g
$ hexo init blog
$ cd blog
$ npm install
$ hexo server

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

Git

1
$ npm install hexo-deployer-git --save

Deploy to remote sites

在開始之前,您必須先在 _config.yml 中修改設定,一個正確的部署設定中至少要有 type 欄位

1
2
3
4
5
deploy:
type: git
repo: <repository url>
branch: [branch]
message: [message]

佈署到伺服器上

1
$ hexo deploy

More info: Deployment