wujun234 / hexo-theme-tree

MIT License
207 stars 62 forks source link

主题部署到Github失败 #10

Closed tianheg closed 4 years ago

tianheg commented 4 years ago

部署到 Github 后,点击网址:https://gaotianhe.github.io/knowledge/

发现页面没有渲染,只有文本。我把你的博客下载后放到 public 文件夹里,发现 404 了。

tianheg commented 4 years ago

我知道是怎么回事了,只能部署到网址:https://gaotianhe.github.io/

不能有其他指向,不过我记得以前是可以指向子路径的啊,可能跟这个有区别

我成功部署到了 我的 gitee 网址 http://gaotianhe.gitee.io

是可以部署到子路径的,不过需要在本地的根目录的 _config.yml 文件修改

url: http://yoursite.com
root: /

而我没有修改。

wujun234 commented 4 years ago

这个是 GitHub Pages 的限制,个人页面只能是根路径,组织或者项目页面才可以子路径

yidajiabei notifications@github.com 于2020年4月23日周四 上午9:59写道:

我知道是怎么回事了,只能部署到网址:https://gaotianhe.github.io/

不能有其他指向,不过我记得以前是可以指向子路径的啊,可能跟这个有区别

我成功部署到了 我的 gitee 网址 http://gaotianhe.gitee.io

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wujun234/hexo-theme-tree/issues/10#issuecomment-618131903, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZOQYMKKZOU6PFOQFEEP5TRN6OJHANCNFSM4MOUXLIA .

tianheg commented 4 years ago

不过,可以通过修改 hexo 的配置使用子路径