【发布时间】:2016-11-27 21:26:53
【问题描述】:
问题
我想了解为什么我的个人 Github IO 页面 tobias-schmidt.site 上没有加载我的 CSS 资源。
问题
当我通过自定义 dns tobias-schmidt.site 或直接通过 github dns mrtobe.github.io 访问我的页面时,该站点正确加载了 index.html,但没有加载引用的 CSS 文件。当我单击博客文章时,它确实正确加载了 CSS。那么对于这个冲浪会话,CSS 也可以在 index.html 上找到。
设置
- 来自 GoDaddy 的 dns,为 tobias-schmidt.site 设置了 A-Record - 此 dns 已添加到 github 存储库的设置中
- 网站是用 hugo 生成的 - 完整的项目托管在 https://github.com/mrtobe/mrtobe-hugo 下 - ./deloy.sh 用于部署页面
- Hugo 生成一个静态网站,托管在这里https://github.com/mrtobe/mrtobe.github.io
最佳猜测
我检查了不同的帖子,发现它可能是混合内容,但我不知道如何使用 github pages 解决这个问题。
【问题讨论】:
标签: dns web ssl-certificate github-pages hugo