将hexo博客部署到coding
前言
相当于同时将博客部署到github和coding
1.为了解决github对百度爬虫的限制,使博客内容可以索引到
2.加快网页打开速度
注册coding账号
过程与github注册相似,并且coding是中文的。可参考末尾给出的网址
建立一个工程,工程名尽量设置为用户名。
在账户设置中添加ssh公钥,可直接用之前github的公钥
C:\Users\C_YANG_HEN\.ssh
添加完成后,在gitbash输入ssh -T git@git.coding.net
修改站点配置文件
_config.yml
修改如下:12345deploy:type: gitrepo:github: git@github.com:lhy0609/lhy0609.github.io.git,mastercoding: git@git.coding.net:lhy0609/lhy0609.git,master在source添加一个文件
Git bash输入12cd source/touch Staticfile #名字必须是Staticfile
执行hexo g -d ,完成部署
coding Pages
进入Coding项目管理,在代码菜单中,开启page服务。注意框里要填master。之后稍等一段时间