提交 9b45c090 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Change the cdn link for canvas-nest

Remove the extra configuration item
上级 723cfa71
......@@ -635,8 +635,6 @@ canvas_ribbon:
# Dependency: https://github.com/hustcc/canvas-nest.js
canvas_nest:
enable: false
# Whether to show on mobile.
onmobile: true
# Color of lines.
# RGB values, use `,` to separate.
color: "0,0,0"
......@@ -927,7 +925,7 @@ cdn:
# Using version: latest
# See: https://github.com/hustcc/canvas-nest.js
# Example:
# canvas_nest: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@latest/canvas-nest.min.js
# canvas_nest: //cdn.jsdelivr.net/npm/canvas-nest.js@1.0.1/dist/canvas-nest.min.js
canvas_nest:
# Using version: 3.5.7
......
......@@ -18,7 +18,7 @@ if theme.canvas_ribbon.enable
script(src=ribbon_js size=ribbon.size alpha=ribbon.alpha zIndex=ribbon.zIndex)
if theme.canvas_nest.enable
- var nest_js = 'https://cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@latest/canvas-nest.min.js';
- var nest_js = 'https://cdn.jsdelivr.net/npm/canvas-nest.js@1.0.1/dist/canvas-nest.min.js';
- var nest = theme.canvas_nest;;
- if (theme.cdn.canvas_nest) nest_js = theme.cdn.canvas_nest;
script(src=nest_js color=nest.color opacity=nest.opacity count=nest.count zIndex=nest.zIndex)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册