MarkG
MarkG

Reputation: 647

How to get Bitters working in Jekyll?

I have been using Bourbon and Neat in Jekyll with no problems. I am now trying to add Bitters to the mix, but am having problems. I have installed Bitters using gem install bitters and it works in non-Jekyll projects.

My _config.yml file contains gems: [bourbon, bitters, neat]. My scss file contains

@import 'bourbon';
@import 'base/base';
@import 'neat';

The error I get when I try to serve Jekyll is

File to import not found or unreadable: bitters.
Load paths: 
  C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bourbon-4.1.1/app/assets/stylesheets  
  C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/neat-1.7.1/app/assets/stylesheets on line 4

I have tried editing _grid_settings.scss as per the instructions here, but to no avail.

Edit

Here is the code on GitHub. The line @import 'base/base'; is commented out in _sass/_base.scss in order to get it to run.

Upvotes: 0

Views: 463

Answers (2)

Brian
Brian

Reputation: 468

For others running into this problem in the future, I was able to resolve this issue by adding the directory containing my "base/base" bitters installation to my _config.yml

e.g. for "base/base" in the css folder add

sass: sass_dir: css

to your _config.yml

Upvotes: 0

David Jacquel
David Jacquel

Reputation: 52829

Be sure to gem install bitters

Uncomment the @import 'base/base'; in _sass/base.scss

Then

cd _sass
bitters install
cd ..
jekyll serve

Works perfect here on Ubuntu 14.04.

Upvotes: 1

Related Questions