https://github.com/zroger/jekyll-less
Less CSS converter for Jekyll
https://github.com/zroger/jekyll-less
Last synced: 4 months ago
JSON representation
Less CSS converter for Jekyll
- Host: GitHub
- URL: https://github.com/zroger/jekyll-less
- Owner: zroger
- License: mit
- Created: 2011-06-30T23:32:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-09-25T16:08:27.000Z (over 8 years ago)
- Last Synced: 2024-04-23T23:07:25.736Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 167 KB
- Stars: 60
- Watchers: 3
- Forks: 27
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Less for Jekyll
===============This gem provides a [Jekyll](http://github.com/mojombo/jekyll) converter for
[Less CSS](http://lesscss.org/) files.Basic Setup
-----------
Install the gem:[sudo] gem install jekyll-less
In a plugin file within your Jekyll project's _plugins directory:
# _plugins/my-plugin.rb
require "jekyll-less"Alternatively, add a configuration option in `_config.yml`:
gems: ['jekyll-less']
Place .less files anywhere in your Jekyll project's directory. These will be
converted to .css files with the same directory path and filename. For example,
if you create a Less file at _css/my-stuff/styles.less_, then the corresponding
css file would end up at _css/my-stuff/styles.css_.Bundler Setup
-------------
Already using bundler to manage gems for your Jekyll project? Then just addgem "jekyll-less"
to your gemfile and create the following plugin in your projects _plugins
directory. I've called mine bundler.rb. This will automatically require all
of the gems specified in your Gemfile.# _plugins/bundler.rb
require "rubygems"
require "bundler/setup"
Bundler.require(:default)Credit
------
This gem was originally based on this [gist](https://gist.github.com/760265) by
[joshbrown](https://github.com/joshbrown).