无法在 GitHub 页面中使用 Jekyll 主题的 "page" 和 "post" 布局?
Cannot use "page" and "post" layouts of Jekyll theme in GitHub pages?
我开始尝试使用 GitHub 页面和 Jekyll。
您可以在这里找到我的存储库:
https://github.com/braek/braek.github.io
您可以在此处找到的网站:
我创建了一个 post 并配置了 "page" 作为布局,但是页面没有呈现在我在 GitHub 页面设置中选择的 Cayman 主题中。
布局设置为 "post" 的 post 也是如此。
这正常吗?我需要自己在 _layouts 目录中添加这些模板吗?
亲切的问候,
B.
Cayman theme 没有 page
布局。它只有 default
布局。
您必须自己构建 page
布局。
instructions on how to create new layouts & modify the default one 位于 Cayman 主题的存储库中,为简单起见复制如下:
Layouts
If you'd like to change the theme's HTML layout:
- Copy the original template from the theme's repository
(Pro-tip: click "raw" to make copying easier)
- Create a file called
/_layouts/default.html
in your site
- Paste the default layout content copied in the first step
- Customize the layout as you'd like
我开始尝试使用 GitHub 页面和 Jekyll。
您可以在这里找到我的存储库:
https://github.com/braek/braek.github.io
您可以在此处找到的网站:
我创建了一个 post 并配置了 "page" 作为布局,但是页面没有呈现在我在 GitHub 页面设置中选择的 Cayman 主题中。
布局设置为 "post" 的 post 也是如此。
这正常吗?我需要自己在 _layouts 目录中添加这些模板吗?
亲切的问候, B.
Cayman theme 没有 page
布局。它只有 default
布局。
您必须自己构建 page
布局。
instructions on how to create new layouts & modify the default one 位于 Cayman 主题的存储库中,为简单起见复制如下:
Layouts
If you'd like to change the theme's HTML layout:
- Copy the original template from the theme's repository
(Pro-tip: click "raw" to make copying easier)- Create a file called
/_layouts/default.html
in your site- Paste the default layout content copied in the first step
- Customize the layout as you'd like