github / pages-gem

A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages
http://pages.github.com
MIT License
1.82k stars 350 forks source link

Unable to completely disable theme or use custom default layout #849

Closed remino closed 1 year ago

remino commented 1 year ago

Before submitting an issue, please be sure to

This issue affects

The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.

What did you do (e.g., steps to reproduce)

github-pages forces me to use the jekyll-theme-primer even if I set no theme in my _config.yml file. There is no way to completely disable the theme.

Also, adding a default.html layout and specifying it or not in my source file’s frontmatter has no effect.

This issue is related to: https://github.com/jekyll/jekyll/issues/9143

What did you expect to happen?

I expect to have a way to completely disable the theme so I can just write my own HTML, like setting theme: false in _config.yml. But there is no way to do this.

I also expect my _layouts/default.html file to be used instead, but it is never used.

What happened instead?

Either jekyll-theme-primer always takes over no matter what, or I only get my source file rendered without any layout HTML. In the case of index.md, when served locally, I sometimes even get a Webrick directory listing.

Additional information

remino commented 1 year ago

Turns out solving the other issue mentioned above also solved this problem.

Please disregarding. Closing.