杰基尔:插入首页后找不到页面



我开始制作github.io投资组合&博客网站。这是我有生以来第一次…我目前的网页制作过程:

  1. 选择&下载有吸引力的模板。(完成。它有主页、有项目链接的公文包页面和有一般博客文章的博客页面(
  2. 要应用Jekyll风格,请修改页面和基本文件夹,如_posts、_layouts、_includes等
  3. 为了测试我的页面,我安装了Ruby和gems。我键入了bundle exec jekyll serve,它与我的index.html和原始(未转换为Liquid类型(blog.html一起工作
  4. 我复制了blog.html的代码并将其粘贴到_layouts/bloglayout.html中,并像下一个代码一样更改了blog.html然后,每当我点击导航栏上的博客时,我都会出现一个404页面未找到错误
<!--/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

1-从类似的链接中删除.htmlhttps://juyeon-lee.github.io/blog/问题404将得到解决2-必须添加{{ content }}

<!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 %}
{{ content }}
{% include footer.html %}
{% include scripts.html %}
</body>
</html>

3-添加到blog.html

---
layout: blog_layout
---

最新更新