怎么发表博客
1 将项目clone到本地
1
| git clone https://github.com/gdutrdc/blog-code.git
|
3 进入/blog/themes/
目录,打开命令行
1
| git clone https://github.com/yumemor/hexo-theme-primer.git
|
4 安装成功后将hexo-theme-primer
这个文件夹重命名为primer
5 退回blog文件夹,在当前位置打开命令行工具
6 安装hexo-cli
如果因为墙而安装不了,加一下淘宝的镜像
1
| npm install hexo-cli -g --registry=https://registry.npm.taobao.org
|
7 安装hexo插件,在命令行输入
安装不了同样加上镜像
1
| npm install --registry=https://registry.npm.taobao.org
|
8 安装完毕之后可以开始写东西了
9 在 blog\source\_posts
这个目录下可以看到生成一个md文件

10 打开你喜欢的编辑器,编辑这个md文件(md语法)
11 编辑完保存后,输入
将这篇md语法的文章生成对应的html文件
12 打开一个静态服务器预览
13 一切都ok,输入
将其部署到github上
14 最后,记得提交整个blog代码!!!!!
1 2 3
| git add -A git commit -m "test" git push origin master
|