jekyll - 如何编辑 github 页面的 css 和 html,jekyll + minima 主题

标签 jekyll github-pages

我已多次阅读说明并在这些论坛中搜索答案;如果我遗漏了一些非常明显的东西,我深表歉意。

我无法让 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/

仓库:https://github.com/prismspecs/prismspecs.github.io/

最佳答案

该问题是由于您的 _layouts/home.html 与主题不匹配造成的。 该布局要求提供三个包含项,这些包含项既不存在于您的存储库中,也不存在于 jekyll-theme-minimal 中。 .

解决方案是删除自定义布局或将三个包含项添加到您的存储库中。

关于jekyll - 如何编辑 github 页面的 css 和 html,jekyll + minima 主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55233266/

相关文章:

jekyll - 更改我的 github 页面的主题,页面为空

javascript - 我可以使用 react-router 为 github-pages 站点创建路由吗?

jekyll liquid 指令未在 github-pages 主 index.html 中处理;我错过了什么?

github - 从 master 分支中的/dist 文件夹托管 github 页面

github-pages - Github 环境

github - 如何删除Github Pages上的标题?

jekyll - 如何在Jekyll中获得更长的自动摘录?

shell - 如何在shell脚本中同时运行两个命令?

ruby - 无法从 Jekyll 插件获取页面数据

amazon-web-services - 使用 AWS 的 Github 页面自定义域的 HTTPS