hexojs / hexo-renderer-less

Less renderer for Hexo.
https://hexo.io/
MIT License
14 stars 10 forks source link

Less include paths #3

Closed thom4parisot closed 10 years ago

thom4parisot commented 10 years ago

This change enables to specify Less include paths items.

// themes/yourtheme/_config.yml

less:
  paths:
    - bower_components/bootstrap/less

And then doing the following will lookup first in the import paths:

// in themes/yourtheme/source/stylesheets/main.less
@import 'bootstrap.less';

// ...

Included that way:

<%- css(['stylesheets/main.css']) %>