1
2
主题参考
https://github.com/aircloud/hexo-aircloud-blog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# .gitignore文件里面忽略了node_modules文件夹
#(建议每次都按照如下步骤部署):
$ hexo new "My New Post"
$hexo clean
$hexo generate #Generate static files
$hexo deploy #Deploy to remote sites
$ hexo d
#如果出现错误 ERROR Deployer not found: git
#cmd命令行 切换到git clone的目录下,
#执行 npm install --save hexo-deployer-git
#执行 npm install hexo --save


$ hexo server ##Run server 可选

注意deploy的过程中要输入你的username及passward。如下

More info: Writing

More info: Server

More info: Generating

More info: Deployment

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
#node.js :https://nodejs.org/en/
#git:https://git-scm.com/
C:\Users\fanshuang>node -v
v9.4.0
C:\Users\fanshuang>npm -v
5.6.0
C:\Users\fanshuang>git --version
git version 2.15.0.windows.1
C:\Users\fanshuang>
npm install -g hexo
npm install hexo --save
D:\Hexo>hexo -v
hexo-cli: 1.0.4
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.7.0
node: 9.4.0
v8: 6.2.414.46-node.17
uv: 1.18.0
zlib: 1.2.11
ares: 1.13.0
modules: 59
nghttp2: 1.29.0
openssl: 1.0.2n
icu: 60.1
unicode: 10.0
cldr: 32.0
tz: 2017c
D:\Hexo>