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
Unverified
parent c1ac4a5e16
commit ab6672429f
30 changed files with 335 additions and 234 deletions

View File

@@ -28,7 +28,7 @@ script.
if (typeof twikoo === 'object') {
runTwikoo()
} else {
getScript('!{theme.CDN.twikoo}').then(runTwikoo)
getScript('!{theme.asset.twikoo}').then(runTwikoo)
}
}

View File

@@ -12,7 +12,7 @@ script.
}
if (typeof Valine === 'function') initValine()
else getScript('!{url_for(theme.CDN.valine)}').then(initValine)
else getScript('!{url_for(theme.asset.valine)}').then(initValine)
}
window.pjax ? loadValine() : window.addEventListener('load', loadValine)

View File

@@ -10,7 +10,7 @@ script.
}
if (typeof Waline === 'function') initWaline()
else getScript('!{url_for(theme.CDN.waline)}').then(initWaline)
else getScript('!{url_for(theme.asset.waline)}').then(initWaline)
}
window.pjax ? loadWaline() : window.addEventListener('load', loadWaline)