How do you make blog for yourself ?

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

Install hexo

1
2
3
npm install hexo-cli g #安装
npm update hexo -g #升级
hexo init blog #初始化博客文件夹

Install theme Next

1
git clone https://github.com/iissnan/hexo-theme-next themes/next

Install Plugins

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 切换到该路径
cd blog
#安装hexo的扩展插件
npm install
#安装其它插件
npm install hexo-server --save
npm install hexo-admin --save
npm install hexo-generator-archive --save
npm install hexo-generator-feed --save
npm install hexo-generator-search --save
npm install hexo-generator-tag --save
npm install hexo-deployer-git --save
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

Create a new post

1
2
3
4
hexo new "postName" #新建文章
hexo new page "pageName" #新建页面
hexo new photo "My Gallery"
hexo new "Hello World" --lang tw

More info: Writing

Run server

1
hexo server

More info: Server

Abbreviate hexo commands

1
2
3
4
5
6
7
hexo g:hexo generate
hexo c:hexo clean
hexo s:hexo server
hexo d:hexo deploy
hexo clean && hexo g -s #清除、生成、启动
hexo clean && hexo g -d #清除、生成、部署

Generate static files

1
hexo generate

More info: Generating

Deploy to remote sites

1
hexo deploy

More info: [Deployment](https://hexo.io/docs/deployment.html

本文有任何错误,或有任何疑问,欢迎留言说明。

邮箱: opensmarty@163.com
QQ: 1327400982

helloworld
Hexo
Hexo Next
Next Source
Install Hexo admin
Optimize the hexo-theme-next

---------------- The End ----------------