Change theme of my github pages, and pages are empty

*爱你&永不变心* 提交于 2019-12-10 19:07:46

问题


I'm new to Github pages and Jekyll, I follow the steps about how to build Github pages, and then succeed. When I changing the theme in Settings and refresh, it shows nothing in main page.

I don't override _layouts or anything else. Because it says Github support the theme so I would think I should do nothing to support the new theme, just like the default theme Minima.

So I wonder, does it just go like this or I missing something? Thanks for any idea :)


回答1:


Each Jekyll theme has a different set of layouts.

The default theme comes with four layouts:

  1. default
  2. home
  3. page
  4. post

While other layouts can have the same ones or a different set of layouts, in this case the other theme you chose only has one layout, that honors the minimal section of its name (jekyll-theme-minimal):

  1. default

The default installation comes with few examples using different layouts, if you change to the jekyll-theme-minimal you only have one layout available (unless you add more by yourself).



来源:https://stackoverflow.com/questions/42966262/change-theme-of-my-github-pages-and-pages-are-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!