breaking changes: cdn 可一鍵設置 本地文件/可單獨配置主題文件,第三方文件的 cdn

breaking changes: 移除 utterances,giscus, addtoany, busuanzi 的 cdn 配置
This commit is contained in:
Jerry
2022-02-19 00:43:01 +08:00
parent c1ac4a5e16
commit ab6672429f
30 changed files with 335 additions and 234 deletions

View File

@@ -18,7 +18,7 @@ script.
}
const loadMermaid = () => {
window.loadMermaid ? runMermaid() : getScript('!{theme.CDN.mermaid}').then(runMermaid)
window.loadMermaid ? runMermaid() : getScript('!{theme.asset.mermaid}').then(runMermaid)
}
window.pjax ? loadMermaid() : document.addEventListener('DOMContentLoaded', loadMermaid)