CSS 没有显示,因为没有明显的原因 <head> 没有出现在 _site 文件夹中
CSS not showing because for no apparent reason <head> is not appearing in _site folder
我的网站做得非常好,但现在 css 没有出现,原因不明,因为 <head>
没有出现在 _site 文件夹中。同时很明显我在根目录中可用。
有人可以帮忙检查一下吗?因为我对明显的错误视而不见。
Link 到网站: http://werkbaar.net/
Link 回购: https://github.com/bomengeduld/boilerplate
问题:
当我在我的网站上进行 chrome 检查时,我注意到标签被删除了:
索引页结构:
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<!-- The #page-top ID is part of the scrolling feature - the data-spy and data-target are part of the built-in Bootstrap scrollspy function -->
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
{% include nav.html %}
{% include header.html %}
{{ content }}
{% include footer.html %}
{% include scripts.html %}
</body>
</html>
通过将 YAML 前端添加到 index.html
来解决它,它链接到我的 default.html,其中 <head>
位于
---
layout: default
---
我的网站做得非常好,但现在 css 没有出现,原因不明,因为 <head>
没有出现在 _site 文件夹中。同时很明显我在根目录中可用。
有人可以帮忙检查一下吗?因为我对明显的错误视而不见。
Link 到网站: http://werkbaar.net/
Link 回购: https://github.com/bomengeduld/boilerplate
问题: 当我在我的网站上进行 chrome 检查时,我注意到标签被删除了:
索引页结构:
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<!-- The #page-top ID is part of the scrolling feature - the data-spy and data-target are part of the built-in Bootstrap scrollspy function -->
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
{% include nav.html %}
{% include header.html %}
{{ content }}
{% include footer.html %}
{% include scripts.html %}
</body>
</html>
通过将 YAML 前端添加到 index.html
来解决它,它链接到我的 default.html,其中 <head>
位于
---
layout: default
---