Windows安装hexo部署在Github

运行环境

安装git+node.js+hexo,都是静默安装,这里不说啦!安装好了这三个软件,就按照下面的命令走,百分百成功哦!

 

1.本地创建 hexoblog
2.初始化 hexo init
3.编译 hexo g
4.本地启动服务器预览 hexo s 
localhost:4000

5.部署前需要安装hexo 部署插件 npm install hexo-deployer-git --save
6.配置config.yml
 deploy: 指定仓库路径和部署协议
 repository: 刚才创建的github仓库的git地址 git@github.com:17001/17001.github.io
 type: git
 branch: master


7.  在hexo工程source 下,执行命令安装hexo-admin插件 npm install hexo-admin --save
   localhost:4000/admin
  这里可以编辑博客内容,并发布

8.hexo d 将本地文件发布到github等git仓库上;
 

---------------------------分割线-------------可参考
https://theme-next.org/docs/getting-started/  下载并安装next主题
git clone https://github.com/theme-next/hexo-theme-next

-------------------------在windows搭建hexo部署到github-------可参考
https://jingyan.baidu.com/album/e8cdb32b0ce12137042bad51.html?picindex=8



添加网易云音乐


<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=280 height=86 src="//music.163.com/outchain/player?type=2&id=1379456709&auto=1&height=66"></iframe>


 

转载于:https://my.oschina.net/u/4058639/blog/3080090

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值