导航栏上的 Jekyll 联系页面保持重定向到 404 页面
jekyll contact page on nav bar keeps redirect to 404 page
抱歉,我是 Jekyll 的新手。我在 https://github.com/daattali/beautiful-jekyll
使用 Beautiful Jekyll 主题
在导航栏上,"about me" 和 "contact" 都重定向到 404.html 页面。
在_config.yml中,我看到了以下内容
# List of links in the navigation bar
navbar-links:
Home: ""
About Me: "about"
Contact: "contact"
在我的根目录中,我确实看到了 about.md 和 contact.md
about.md
---
layout: page
title: About
---
# Hello World
contact.md
---
layout: page
title: Contact
---
# Contact Page
我应该在这里修复什么?
您肯定正在使用位于 github.com/UserName/RepositoryName
的项目存储库,服务于 UserName.github.io/RepositoryName
。
在_config.yml
中你需要设置baseurl: /RepositoryName
.
抱歉,我是 Jekyll 的新手。我在 https://github.com/daattali/beautiful-jekyll
使用 Beautiful Jekyll 主题在导航栏上,"about me" 和 "contact" 都重定向到 404.html 页面。
在_config.yml中,我看到了以下内容
# List of links in the navigation bar
navbar-links:
Home: ""
About Me: "about"
Contact: "contact"
在我的根目录中,我确实看到了 about.md 和 contact.md
about.md
---
layout: page
title: About
---
# Hello World
contact.md
---
layout: page
title: Contact
---
# Contact Page
我应该在这里修复什么?
您肯定正在使用位于 github.com/UserName/RepositoryName
的项目存储库,服务于 UserName.github.io/RepositoryName
。
在_config.yml
中你需要设置baseurl: /RepositoryName
.