ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.29k stars 1.54k forks source link

Travis CI 部署时,网页除了标题没有任何更改 #726

Closed ElaBosak233 closed 4 years ago

ElaBosak233 commented 4 years ago

部署 仓库 ElaBosak233/ElaBosak233.github.io

Pages 在 master 上,开发在 site 分支上

我在电脑上使用 hexo s 预览时,就像图片上这样的,很正常,都调试过了

捕获.PNG

但是通过 Travis CI 后,显示出来是这样的

捕获.PNG

这是我在 VSCode 里面的界面

捕获.PNG

求个解决方法吧,主题的 _config.yml 都是重新设置好了的,但就是没有应用

另外,如何把 CNAME 部署到 pages 上面,否则每次都要去设置,非常麻烦啊

ppoffice commented 4 years ago

@ElaBosak233 你Travis日志显示部署成功了么?有没有错误提示?

ElaBosak233 commented 4 years ago

@ppoffice 成功了的,但是本来该有的都没显示出来,比如我的名字本该是Ela,结果还是Your name

ppoffice commented 4 years ago

@ElaBosak233 你主题的_config.yml在.gitignore的列表里而没有被push到GitHub上。请修改. gitignore或者参考本repo下site分支的.travis.yml文件关于主题配置的处理。

ElaBosak233 commented 4 years ago

@ppoffice 没有在gitignore里面添加_config.yml,一直都在git里面的,说实在的,我感觉和生成的静态文件有关,但我不知道又错在哪里了

ElaBosak233 commented 4 years ago

@ppoffice 现在 Travis 部署在master上的所有文件,都有文件名,但是里面什么也没有

ElaBosak233 commented 4 years ago

ok,已经解决了,问题还是在gitignore上,是我疏忽了,原来是主题里面的gitignore