jekyll - 如何为 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,只是把背景变黑,似乎也不起作用。
解决方案
问题是因为您的_layouts/home.html
主题和主题不匹配。布局要求三个包含,它们既不存在于您的存储库中,也不存在于jekyll-theme-minimal
.
解决方案是删除自定义布局或将三个包含添加到您的存储库中。
推荐阅读
- drake - 如何在没有模拟的情况下可视化新姿势,使用 VTKRenderer
- arrays - PostgreSQL:在 WITH 构造中使用列作为数组
- html - CSS自动填充顶部和底部以始终覆盖高度
- php - 以编程方式在购物车中添加 WC Booking 失败
- javascript - 如何从 aReadStream 文本文件中删除 \n 和 \r
- hive - Flink通过流模式读取Hive,为什么只读取最新的分区,即使我将开始偏移设置为最旧的分区?
- python - 熊猫:如果列符合条件,则添加行
- sql - postgres 文本字段到具有空值和空值的数字
- node.js - 将 Ember.js 应用程序部署到 Heroku 时如何解决“无法下载节点 14.18.0”?
- api - Connexion 不提供 Swagger UI