首页 > 解决方案 > 如何为 github 页面、jekyll + minima 主题编辑 css 和 html

问题描述

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

我无法让 CSS 或 HTML 模板在我的 GitHub 页面站点上工作。我收到以下模板错误:

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/

标签: jekyllgithub-pages

解决方案


问题是因为您的_layouts/home.html主题和主题不匹配。布局要求三个包含,它们既不存在于您的存储库中,也不存在于jekyll-theme-minimal.

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


推荐阅读