https://github.com/hexojs/hexo-renderer-less
Less renderer for Hexo.
https://github.com/hexojs/hexo-renderer-less
hexo hexo-plugin
Last synced: 6 months ago
JSON representation
Less renderer for Hexo.
- Host: GitHub
- URL: https://github.com/hexojs/hexo-renderer-less
- Owner: hexojs
- License: mit
- Created: 2014-01-11T13:40:45.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T08:57:12.000Z (over 1 year ago)
- Last Synced: 2025-06-08T16:09:46.509Z (7 months ago)
- Topics: hexo, hexo-plugin
- Language: JavaScript
- Homepage: https://hexo.io/
- Size: 128 KB
- Stars: 16
- Watchers: 12
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Less] renderer
[](https://github.com/hexojs/hexo-renderer-less/actions?query=workflow%3ATester)
[](https://www.npmjs.com/package/hexo-renderer-less)
[](https://coveralls.io/github/hexojs/hexo-renderer-less?branch=master)
Add support for [Less].
## Install
``` bash
$ npm install hexo-renderer-less --save
```
## Configure
In your theme configuration,
```yaml
# themes/yourtheme/_config.yml
less:
paths: []
options:
```
- **paths**: Array of [include paths](http://lesscss.org/usage/#less-options-include-paths).
* e.g. to include Bower Bootstrap, `['bower_components/bootstrap/less']`
* globbing is also supported, `['bower_components/bootstrap/**']`
- **options**: Less.js [options](http://lesscss.org/usage/#less-options).
* Example:
``` yml
less:
options:
globalVars:
var1: 'some value'
```
[Less]: http://lesscss.org/