gpt4 book ai didi

github-pages -/_layouts/default.html 中包含一个符号链接(symbolic link)文件或在您的 _includes 目录中不存在

转载 作者:行者123 更新时间:2023-12-03 19:19:28 26 4
gpt4 key购买 nike

当我尝试构建我的 github.io 页面时,我收到了这个错误。

A file was included in /_layouts/default.html that is a symlink or does not exist in your _includes directory.

这个错误是什么意思?这是我的 Github 网站: https://github.com/zechnegli/zecheng.github.io .

谢谢!

Screenshot

最佳答案

这意味着您在 _layouts/default.html 中有一个链接引用一个不存在的文件。

检查_layouts/default.html :

<!DOCTYPE html>
<html>
{% include head.html %}
<body id="page-top" class="index">
{% include nav.html %}
{% include header.html %}
{% include portfolio_grid.html %}
{% include about.html %}

{% if site.contact == "static" %}
{% include contact_static.html %}
{% elsif site.contact == "disqus" %}
{% include contact_disqus.html %}
{% else %}
{% include contact.html %}
{% endif %}

{% include footer.html %}
{% include modals.html %}
{% include js.html %}
</body>
</html>

所有 included文件必须位于 _includes目录:

includes

如您所见,至少 contact_disqus.html不见了。

关于github-pages -/_layouts/default.html 中包含一个符号链接(symbolic link)文件或在您的 _includes 目录中不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59673507/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com