Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

vandreleal/hexo-renderer-sass-typesettings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-renderer-sass-typesettings

Build Status NPM Version dependencies Status devDependencies Status

Sass renderer plugin for Hexo with Typesettings support.

Install

$ npm install hexo-renderer-sass-typesettings --save

Usage

To enable Typesettings support you need to import it at the beginning of your stylesheet:

@import 'typesettings';

Config

This renderer supports all node-sass settings. Check out the node-sass docs for all available options. Anything specified under the key typesettings in your _config.yml files will be passed to the sass.render() call.

Example _config.yml

typesettings:
  outputStyle: compressed
  indentedSyntax: false
  omitSourceMapUrl: true
  sourceMap: true
  sourceMapEmbed: false
  sourceMapContents: false

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: 'nested', sourceComments: false })
  2. Theme specific _config.yml
  3. Blog root _config.yml