[英]Difficulty in setting up jekyll theme for github page
I have enabled github page for my repository .我已为我的存储库启用了 github页面。 I am trying to set up theme for the page using repository settings.
我正在尝试使用存储库设置为页面设置主题。 When I selected the theme ,a
_config.yml
file was generated in docs folder.当我选择主题时,在 docs 文件夹中生成了一个
_config.yml
文件。 But no theme is there on github page.但是github页面上没有主题。 Do I need to add any other file in
/docs/
folder apart from index.html
and _config.yml
?除了
index.html
和_config.yml
之外,我是否需要在/docs/
文件夹中添加任何其他文件?
Thanks to Github support team, I got the solution.感谢 Github 支持团队,我得到了解决方案。 I added this front matter at the top of my HTML file, that made the theme styles applied:
我在我的 HTML 文件的顶部添加了这个前置问题,这使得应用了主题样式:
---
layout: default
---
If you use Markdown, the theme would be applied automatically so converting your HTML to Markdown is another option.如果您使用 Markdown,主题将自动应用,因此将您的 HTML 转换为 Markdown 是另一种选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.