Search code examples
jekyllgithub-pages

Change theme of my github pages, and pages are empty


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 :)


Solution

  • 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).