UNPKG

hexo-theme-volantis

Version:

Elegant and powerful theme for Hexo.

55 lines (46 loc) 1.39 kB
// 插件样式条件编译:根据主题配置决定是否编入 //数学公式 mathjax @import 'mathjax' // Icon 颜色 @import 'fontcolor' // 代码高亮 if hexo-config('plugins.code_highlight') @import '_highlight' // 通知弹窗 if hexo-config('plugins.message.enable') @import 'message' // aplayer音乐 if hexo-config('plugins.aplayer.enable') @import 'aplayer' // 摘要插件 if hexo-config('plugins.tianliGPT.enable') @import 'tianliGPT' // gitalk if hexo-config('comments.service')=='gitalk' @import 'gitalk' // waline if hexo-config('comments.service')=='waline' @import 'waline' // twikoo if hexo-config('comments.service')=='twikoo' @import 'twikoo' // 鼠标指针 if hexo-config('custom_css.cursor.enable') @import 'cursor' // 右键菜单 if hexo-config('rightmenus.enable') @import '_rightmenu/*' // 搜索服务(hexo / algolia / meilisearch 三选一) if hexo-config('search.enable') if hexo-config('search.service')=='hexo' @import '_search/hexo' else if hexo-config('search.service')=='algolia' @import '_search/algolia' else if hexo-config('search.service')=='meilisearch' @import '_search/meilisearch' // 图片灯箱 fancybox @import 'fancybox' // 暗色模式(需最后加载以覆盖亮色变量) // 暗黑模式样式放到最后加载 if hexo-config('plugins.darkmode.enable') @import '_dark/dark_async'