mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:30:53 +08:00
1. 增加了 ChartJS 图表官方语法; 2. 新增了 ChartJS 的双模式(浅色/深色模式)显示功能; 3. 扩展了 ChartJS 的 config 语法,支持双模式配置。 4. 修复了 ChartJS 在双模式下默认样式的问题,简化用户配置图表过程。
14 lines
348 B
Plaintext
14 lines
348 B
Plaintext
case theme.math.use
|
|
when 'mathjax'
|
|
if (theme.math.per_page && (is_post() || is_page())) || page.mathjax
|
|
include ./mathjax.pug
|
|
|
|
when 'katex'
|
|
if (theme.math.per_page && (is_post() || is_page())) || page.katex
|
|
include ./katex.pug
|
|
|
|
if theme.mermaid.enable
|
|
include ./mermaid.pug
|
|
|
|
if theme.chartjs.enable
|
|
include ./chartjs.pug |