Jekyll 和 SinglePaged 主题
Jekyll and SinglePaged theme
我正在尝试使用 Jekyll 在 GitHub 上创建一个页面并 运行ning,特别是我找到了 SinglePaged 主题 (https://github.com/t413/SinglePaged)。我按照说明 fork 和所有东西,并创建了两个 posts:
- 2000-01-01-intro.md
- 2000-01-02-education.md
第二个post的内容很简单:
---
title: "education"
bg: turquoise
color: white
---
# Title
test
但是当我在本地 jekyll 服务器上 运行 时,只有这一秒 post 被渲染。当我查看_site/
中生成的index.html
时,它只包含:
<h1 id="title">Title</h1>
<p>test</p>
我通过添加更多 post 来测试它,只有最后一个(即最新日期)被渲染,没有其他任何东西。此外,即使所有文件都存在,CSS 也未在浏览器上应用。有人以前看过这个吗?
编辑:查看我的 GitHub 存储库 https://github.com/muhammadkhan/muhammadkhan.github.io
中的所有代码
问题出在line 10 of your _config.yml
。您将每个页面的永久链接设置为 /
。
删除该行,您将得到您期望的 index.html
。
我正在尝试使用 Jekyll 在 GitHub 上创建一个页面并 运行ning,特别是我找到了 SinglePaged 主题 (https://github.com/t413/SinglePaged)。我按照说明 fork 和所有东西,并创建了两个 posts:
- 2000-01-01-intro.md
- 2000-01-02-education.md
第二个post的内容很简单:
---
title: "education"
bg: turquoise
color: white
---
# Title
test
但是当我在本地 jekyll 服务器上 运行 时,只有这一秒 post 被渲染。当我查看_site/
中生成的index.html
时,它只包含:
<h1 id="title">Title</h1>
<p>test</p>
我通过添加更多 post 来测试它,只有最后一个(即最新日期)被渲染,没有其他任何东西。此外,即使所有文件都存在,CSS 也未在浏览器上应用。有人以前看过这个吗?
编辑:查看我的 GitHub 存储库 https://github.com/muhammadkhan/muhammadkhan.github.io
中的所有代码问题出在line 10 of your _config.yml
。您将每个页面的永久链接设置为 /
。
删除该行,您将得到您期望的 index.html
。