mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
first commit
This commit is contained in:
1
layout/includes/third-party/canvas-ribbon-piao.pug
vendored
Normal file
1
layout/includes/third-party/canvas-ribbon-piao.pug
vendored
Normal file
@@ -0,0 +1 @@
|
||||
script(id="ribbon" src=url_for('https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/js/piao.js'))
|
||||
3
layout/includes/third-party/canvas-ribbon.pug
vendored
Normal file
3
layout/includes/third-party/canvas-ribbon.pug
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
script(id="ribbon" src=url_for('/js/third-party/canvas-ribbon.js') size=theme.canvas_ribbon.size
|
||||
alpha=theme.canvas_ribbon.alpha zIndex=theme.canvas_ribbon.zIndex data-click=`${theme.canvas_ribbon.click_to_change}`)
|
||||
|
||||
7
layout/includes/third-party/katex.pug
vendored
Normal file
7
layout/includes/third-party/katex.pug
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
link(rel="stylesheet" type="text/css" href=theme.katex.cdn.css)
|
||||
script(src='https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js')
|
||||
link(rel="stylesheet" type="text/css" href='https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css')
|
||||
script.
|
||||
$(function () {
|
||||
$('span.katex-display').wrap('<div class="katex-wrap"></div>')
|
||||
})
|
||||
27
layout/includes/third-party/mathjax.pug
vendored
Normal file
27
layout/includes/third-party/mathjax.pug
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
script(type="text/x-mathjax-config").
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {
|
||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
||||
processEscapes: true,
|
||||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
||||
},
|
||||
CommonHTML: {
|
||||
linebreaks: { automatic: true, width: "90% container" }
|
||||
},
|
||||
"HTML-CSS": {
|
||||
linebreaks: { automatic: true, width: "90% container" }
|
||||
},
|
||||
"SVG": {
|
||||
linebreaks: { automatic: true, width: "90% container" }
|
||||
}
|
||||
});
|
||||
|
||||
script(type="text/x-mathjax-config").
|
||||
MathJax.Hub.Queue(function() {
|
||||
var all = MathJax.Hub.getAllJax(), i;
|
||||
for (i=0; i < all.length; i += 1) {
|
||||
all[i].SourceElement().parentNode.className += ' has-jax';
|
||||
}
|
||||
});
|
||||
|
||||
script(src=theme.mathjax.cdn)
|
||||
Reference in New Issue
Block a user