Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knksmith57/hexo-renderer-sass

Sass renderer plugin for Hexo
https://github.com/knksmith57/hexo-renderer-sass

Last synced: 4 days ago
JSON representation

Sass renderer plugin for Hexo

Awesome Lists containing this project

README

        

[Sass] renderer plugin for [Hexo]
=================================

[![npm version](https://badge.fury.io/js/hexo-renderer-sass.svg)](https://badge.fury.io/js/hexo-renderer-sass)
[![CI](https://github.com/knksmith57/hexo-renderer-sass/actions/workflows/ci.yml/badge.svg)](https://github.com/knksmith57/hexo-renderer-sass/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/knksmith57/hexo-renderer-sass/badge.svg?branch=master)](https://coveralls.io/github/knksmith57/hexo-renderer-sass?branch=master)

> A hexo plugin for Dart Sass

## Install
```sh
$ npm install --save hexo-renderer-sass
```

## 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 [Dart Sass options docs]
for all available settings.

### _config.yml
```yaml
node_sass:
outputStyle: expanded
```

### Inheritance
The config object passed to node sass is constructed by merging properties from
the following locations using a least-specific-first order:

1. Hardcoded Defaults (`{outputStyle: 'expanded'}`)
2. Theme specific `_config.yml`
3. Blog root `_config.yml`

## ♥︎
Questions, comments, concerns?
* [@JLHwung](https://github.com/JLHwung)
* [@jojoee](https://github.com/jojoee)
* [@knksmith57](https://github.com/knksmith57)

[Hexo]: http://hexo.io
[Sass]: http://sass-lang.com/
[passed directly]: index.js:#L22
[Dart Sass options docs]: https://sass-lang.com/documentation/js-api/interfaces/LegacyFileOptions