bitgeeky
bitgeeky

Reputation: 319

GitHub Pages: Configuring Base URL for Jekyll Blog

I have Setup a Jekyll Blog for GitHub pages for User. https://github.com/bitgeeky/bitgeeky.github.io

It works fine locally. But on GitHub pages the css files are not getting served. The error in browser console is:

Failed to load resource: the server responded with a status of 404 (Not Found) http://pankajmalhotra.com/public/css/main.css

I suspect some problem with the URL path since the page is loading otherwise.

What changes should I make to get the css files and images served ?

Upvotes: 0

Views: 803

Answers (1)

Yi Zeng
Yi Zeng

Reputation: 32845

I guess it's because Github Pages uses jekyll 1.5.1. See Dependency versions.

Your repository uses SASS, which was only introduced in jekyll 2.0.0. See Jekyll History.

So you might want to compile your main.scss manually and point all references to generated main.css, then push main.css to Github.

Upvotes: 3

Related Questions