Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll site works locally but not on Github Pages

I forked the Solid-jekyll theme (solid-jekyll) and got it to work locally. However, when I pushed it up to Github pages, it seems to loose it's css formatting.

My fork of solid-jekyll is on github, username:BeenzSyed. I tried changing the baseurl to "/solid-jekyll" but that didn't work either.

This is what it looks like on my fork: https://beenzsyed.github.io/solid-jekyll/.

This is what it should like though: http://ojs.xyz/solid-jekyll/.

I think it's because it can't find the _includes/css/style.css file but I'm not sure what to do to fix that. Any help is appreciated!

like image 740
Beenz Avatar asked Feb 25 '17 00:02

Beenz


1 Answers

Faced exactly same issue long back and it consumed 2-3 days. Find your main stylesheets (like main.css) and save it to assets folder and commit. This way Github will be copying stylesheet to site built. It usually won't copy :( main.css

like image 148
SACn Avatar answered Sep 18 '22 20:09

SACn