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

问题描述 投票:1回答:1

我已多次重读这些说明,并在这些论坛上搜索答案;如果我遗漏了一些非常明显的东西,我会道歉。

我无法在我的GitHub页面网站上使用CSS或HTML模板。我收到模板的以下错误:

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/

休息日:管家

jekyll github-pages
1个回答
1
投票

问题是因为你的https://github.com/prismspecs/prismspecs.github.io/和主题之间不匹配。布局要求存储库中或_layouts/home.html中不存在的三个包含。

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

© www.soinside.com 2019 - 2024. All rights reserved.