dhulihan / hooligan

A low-lit fully responsive theme for Jekyll-Bootstrap.
http://themes.jekyllbootstrap.com/preview/hooligan/
138 stars 43 forks source link

Remove requirement for sass plugin #1

Closed dhulihan closed 12 years ago

dhulihan commented 12 years ago

Since Jekyll-Bootstrap is made for github-pages (which doesn't support plugins, including SASS), I should include a copy of its stylesheet rendered as .css, so there's no need for a plugin.

dhulihan commented 12 years ago

Ok, this theme now includes the rendered css, and scss file is now stored in assets/hooligan/css/_sass, in case anyone wants to generate it dynamically.

smergler commented 11 years ago

dhulihan,

sass newb here. How would we generate the css? Do we use that style.scss as the config.rb?

Sloan

dhulihan commented 11 years ago

If you do want to generate the css, you'd use a sass plugin like this one. Your config.rb would look something like this:

# config.rb
http_path = "/"
css_dir = "assets/themes/hooligan/css"
sass_dir = "assets/themes/hooligan/_sass"
images_dir = "images"
javascripts_dir = "javascripts"
smergler commented 11 years ago

Hi dihulihan,

Thanks so much for the quick response.

One problem though. I haven't been able to figure out how to get the jekyll bootstrap server to read from the new css compass generates (with auto turned on). So I'm having it write the css to the _site's css file and will have to remember to compile it using your config every time the server runs.

Do you know of a better way? I know this is out of scope of the original problem, I am planning on uploading to github so I cannot use any plugins if I understand their terms of use correctly.

dhulihan commented 11 years ago

Your css should be rendering automatically during site generation, as long as everything is working properly. You could try replacing that sass plugin with a compass plugin instead. Here is my the compass plugin I'm using in my jb sandbox.