envygeeks / jekyll-assets

:art: Asset pipelines for Jekyll.
ISC License
1.11k stars 169 forks source link

SASS/SCSS asset_path not working correctly #38

Closed hv15 closed 11 years ago

hv15 commented 11 years ago

Hi ixti,

I've created a mixin:

@mixin font-face($nick, $name, $file, $weight: normal, $style: normal){
    @font-face {
        font-family: $nick;
        src: url(asset_path("#{$file}.eot"));
        src: url(asset_path("#{$file}.eot?#iefix")) format('embedded-opentype'),
             url(asset_path("#{$file}.woff")) format('woff'),
             url(asset_path("#{$file}.ttf")) format('truetype'),
             url(asset_path("#{$file}.svg##{$name}")) format('svg');
        font-weight: $weight;
        font-style: $style;
    }
}

However, when I build the site I get the following error:

 Liquid Exception: Couldn't find file 'font/lacuna-webfont.eot?#iefix' (in /cygdrive/c/Users/Hans/git/hans.viessmann.co/_assets/stylesheets/main.css.scss) in default.html

I just recently updated to 0.6.0, have there been any changes in how asset_path works?

Thanks

ixti commented 11 years ago

Hmm... Not really. At least I was not changed anything regarding this part. Thanks for report - will check/hotfix asap.

ixti commented 11 years ago

Found defect. It's really was introduced recently. Easy enough to fix.

hv15 commented 11 years ago

Sweet, thanks man, looking forward to the fix :)

ixti commented 11 years ago

Fixed in 0.6.1.

hv15 commented 11 years ago

Thanks, that's fixed it!