@lewiscowper/hexo-renderer-scss
v1.1.0
Published
Yet Another Sass renderer plugin for Hexo
Downloads
1
Readme
Yet another Sass renderer plugin for Hexo
A hexo plugin for node-sass, fully compatible with hexo 3.x Inspired by hexo-renderer-stylus and hexo-renderer-sass
Features
- Use lastest API provided by hexo 3.x
- Export some handy hexo related global functions to the Sass compiler context
hexo-config($key)
Now you can use
hexo-config
function in your 'scss' files to access your hexo app's site configuration.$highlight_theme: hexo-config('highlight_theme')
hexo-theme-config($key)
Similar to the
hexo-config
, you can usehexo-theme-config
to access your hexo theme's configuration.
Install
$ npm install --save hexo-renderer-scss
Config
Anything specified under the key node_sass
in your _config.yml
files will
be passed directly to the sass.render()
call. Check out the node sass options docs
for all available settings.
_config.yml
node_sass:
debug: false
outputStyle: nested
precision: 5
sourceComments: false
Inheritance
The config object passed to node sass is constructed by merging properties from the following locations using a least-specific-first order:
- Hardcoded Defaults (
{outputStyle: 'nested',sourceComments: false}
) - Theme specific
_config.yml
- Blog root
_config.yml
♥︎
Questions, comments, concerns? --> @o2team.