Video
hexo command
Lable | Command | Description |
---|---|---|
hexo:init | hexo init “workspaceFolder” | |
hexo:new | hexo new “title” | |
hexo:generate | hexo generate | |
hexo:publish | hexo publish file | |
hexo:server | hexo server –port hexo_port | |
hexo:clean | hexo clean | |
hexo:list | hexo list hexo_type | |
hexo:version | hexo version | |
hexo:debug | hexo –debug | |
hexo:deploy | echo “hexo deploy” |
config
this is the setting of Cmder For Sublime
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"tasks" : [
//////////////////////////Hexo Command Start/////////////////////////////////
{
"label" : "hexo:init",
"encoding": "UTF-8",
"command": "hexo init \"${input:workspaceFolder}\""
},
{
"label" : "hexo:new",
"encoding": "UTF-8",
"command": "hexo new \"${input:title}\""
},
{
"label" : "hexo:generate",
"encoding": "UTF-8",
"command": "hexo generate"
},
{
"label" : "hexo:publish",
"encoding": "UTF-8",
"command": "hexo publish ${input:file}"
},
{
"label" : "hexo:server",
"encoding": "UTF-8",
"os_termial": true,
"command": "hexo server --port ${input:hexo_port}"
},
{
"label" : "hexo:clean",
"encoding": "UTF-8",
"command": "hexo clean"
},
{
"label" : "hexo:list",
"encoding": "UTF-8",
"command": "hexo list ${select:hexo_type}"
},
{
"label" : "hexo:version",
"encoding": "UTF-8",
"command": "hexo version"
},
{
"label" : "hexo:debug",
"encoding": "UTF-8",
"command": "hexo --debug"
},
{
"label" : "hexo:deploy",
"encoding": "UTF-8",
"command": "hexo deploy"
},
//////////////////////////Hexo Command End/////////////////////////////////
],
"custom_env" : {
"hexo_port" : 4000,
"hexo_type" : ["page", "post", "route", "tag", "category"]
}
}
flow
- hexo:init
- hexo:new
- hexo:server
- New A github repository
- fix config
- hexo:publish
- hexo:generate
about github setting
about _config.yml
Deploy To Github
1
2
3
4
5
6
7
8
url: http://salesforcexytools.com
root: /hexo-test
deploy:
type: git
repo: git@github.com:username/username.github.io.git
branch: [master]
Set
Access URL
http://exiahuang.github.io/hexo-test
http://salesforcexytools.com/hexo-test/