问题
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:
- default
- home
- page
- 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):
- 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