Search code examples
jekyllgithub-pagesjekyll-theme

Jekyll theme jekyll-theme-clean-blog wont build on github pages


I downloaded the jekyll-theme-clean-blog theme and successfully built it locally.

Once I move it to github pages, I get the following build error:

Your SCSS file assets/main.scss has an error on line 2: File to import not found or unreadable: ../assets/vendor/startbootstrap-clean-blog/scss/clean-blog.scss. Load paths: _sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass.

I added

sass: sass_dir: _sass style: :compressed

to config file, still wont build on github pages.

Any help would be much appreciated.


Solution

  • GitHub Pages only supports a select number of themes (https://pages.github.com/themes/) listed below:

    • Architect
    • Cayman
    • Dinky
    • Hacker
    • Leap day
    • Merlot
    • Midnight
    • Minima
    • Minimal
    • Modernist
    • Slate
    • Tactile
    • Time machine

    The one you've named isn't in that list. Basically this is the same issue as not being able to use Jekyll plugins. The solutions there are to use a different hosting solution, or commit the built output of your site to a repo.