hexo部署到coding乱码

论坛 期权论坛 脚本     
匿名技术用户   2020-12-23 13:35   36   0

把hexo部署到coding上乱码

网上关于部署到coding和github上的代码都很多,不过关于coding的教程都有点问题.导致访问首页会乱码,其他页面无路径.这是地址的问题.

原因是在于仓库(项目)的起名上
github为: username.github.io(完毕)
coding 为:username(仓库名就是登录coding的用户名,首页便会自动设为http://username.coding.me/username) 然后开启Page服务,把部署来源改为master分支,直接就ok.

同时把hexo部署到coding 和github 上此时只需要更改项目配置文件_config.yml即可

deploy:
  type: git
  repo:
    coding: https://git.coding.net/centaur/centaur.git,master
    github: https://github.com/chaoxiongTian/chaoxiongtian.github.io
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP