mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
breaking changes: algolia 升級至 v4
feat: 本地搜索增加數據庫加載中和搜索中 loading 顯示 feat: 更改文章美化後,列表的顯示效果 closed #693 closed #686 improvement: UI 微調
This commit is contained in:
15
scripts/events/stylus.js
Normal file
15
scripts/events/stylus.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 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/*')
|
||||
})
|
||||
Reference in New Issue
Block a user