【发布时间】:2020-10-28 14:08:57
【问题描述】:
我开始制作 github.io 投资组合和博客网站。这是我人生中的第一次…… 我目前制作网页的过程:
- 选择并下载有吸引力的模板。(完成。它有主页、包含项目链接的投资组合页面和包含一般博客文章的博客页面)
- 应用 Jekyll 风格,修改页面和基本文件夹,如 _posts、_layouts、_includes 等。(我红了很多帖子,Jekyll 官方介绍。)
- 为了测试我的页面,我安装了 Ruby 和 gems。我输入了
bundle exec jekyll serve,它与我的index.html和原始(不转换为液体类型)blog.html一起使用。 - 我复制了
blog.html的代码并将其粘贴到_layouts/bloglayout.html并更改了blog.html,就像下一个代码一样。 然后,我每次点击导航栏上的博客时都会出现 404 page not found 错误。
<!--/blog.html-->
---
# this is liquid page
layout: blog_layout
---
<!--/_layouts/bloglayout.html-->
<!DOCTYPE html>
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 8)|!(IE)]><!--><html class="no-js" lang="ko"> <!--<![endif]-->
{% include head.html %}
<body>
{% include header.html %}
<!-- Page Title
================================================== -->
<!-- Page Title End-->
<!-- Content
================================================== -->
<!-- Content End-->
{% include footer.html %}
{% include scripts.html %}
</body>
</html>
我花了半天时间研究这个错误,但无法找到原因.. 你能给我任何线索吗...?
这是我的 github 存储库:Juyeon-Lee.github.io
【问题讨论】: