You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
487 B
16 lines
487 B
2 years ago
|
/**
|
||
|
* stylus
|
||
|
*/
|
||
|
|
||
|
'use strict'
|
||
|
|
||
|
hexo.extend.filter.register('stylus:renderer', function (style) {
|
||
|
const { highlight, prismjs } = hexo.config
|
||
|
style
|
||
|
.define('$highlight_enable', highlight && highlight.enable)
|
||
|
.define('$highlight_line_number', highlight && highlight.line_number)
|
||
|
.define('$prismjs_enable', prismjs && prismjs.enable)
|
||
|
.define('$prismjs_line_number', prismjs && prismjs.line_number)
|
||
|
// .import(this.source_dir.replace(/\\/g, '/') + '_data/css/*')
|
||
|
})
|