I’m starting to make github.io portfolio & blog site. It’s my first time in my life… My current process to make web:
bundle exec jekyll serve
and it’s worked with my index.html
and original(not convert into Liquid type) blog.html
.blog.html
and pasted it into _layouts/bloglayout.html
and changed blog.html
like next code. Then, I have a 404 page not found error whenever I click blog at navigation bar.<!--/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>
I spent half a day looking into this error and can't catch the reason.. Could you give me any clue...?
Here is my github repository : Juyeon-Lee.github.io
1- Remove .html From links like https://juyeon-lee.github.io/blog/ And problem 404 will be solved
2- You must add {{ 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- add to blog.html
---
layout: blog_layout
---