运行环境
安装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>