add theme
This commit is contained in:
14
themes/butterfly/layout/includes/third-party/math/index.pug
vendored
Normal file
14
themes/butterfly/layout/includes/third-party/math/index.pug
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
case theme.math.use
|
||||
when 'mathjax'
|
||||
if (theme.math.per_page && (['post','page'].includes(globalPageType))) || page.mathjax
|
||||
include ./mathjax.pug
|
||||
|
||||
when 'katex'
|
||||
if (theme.math.per_page && (['post','page'].includes(globalPageType))) || page.katex
|
||||
include ./katex.pug
|
||||
|
||||
if theme.mermaid.enable
|
||||
include ./mermaid.pug
|
||||
|
||||
if theme.chartjs.enable
|
||||
include ./chartjs.pug
|
||||
Reference in New Issue
Block a user