我已多次阅读说明并在这些论坛中搜索答案;如果我遗漏了一些非常明显的东西,我深表歉意。
我无法让 CSS 或 HTML 模板在我的 GitHub Pages 网站上运行。我收到以下模板错误:
The page build failed for the `master` branch with the following error:
A file was included in `/_layouts/home.html` that is a symlink or does not exist in your `_includes` directory. For more information, see https://help.github.com/en/articles/page-build-failed-file-is-a-symlink.
我尝试过的CSS,只是将背景变成黑色,似乎也不起作用。
测试站点位于此处:https://prismspecs.github.io/
最佳答案
该问题是由于您的 _layouts/home.html
与主题不匹配造成的。
该布局要求提供三个包含项,这些包含项既不存在于您的存储库中,也不存在于 jekyll-theme-minimal
中。 .
解决方案是删除自定义布局或将三个包含项添加到您的存储库中。
关于jekyll - 如何编辑 github 页面的 css 和 html,jekyll + minima 主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55233266/