В файл /_layouts/default.html был включен файл, который является символической ссылкой или не существует в каталоге _includes - PullRequest
2 голосов
/ 10 января 2020

Когда я пытаюсь создать свою страницу 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.

Спасибо!

Снимок экрана

1 Ответ

1 голос
/ 11 января 2020

Это означает, что в _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 отсутствует.

...