breaking changes: 精簡各評論的配置

fix: 修復footer 在部分瀏覽器沒有顯示在底部的 bug
improvement: 修改配置文件註釋
This commit is contained in:
Jerry
2021-07-20 23:56:40 +08:00
parent bbb9beb8f9
commit 43790dec07
9 changed files with 15 additions and 50 deletions

View File

@@ -1,4 +1,3 @@
- let disqusjsApi = theme.disqusjs.api || 'https://disqus.skk.moe/disqus/'
- let disqusjsPageTitle = page.title.replace(/'/ig,"\\'")
script.
@@ -12,20 +11,16 @@ script.
function initDisqusjs () {
window.DISQUS = null
new DisqusJS({
new DisqusJS(Object.assign({
shortname: '!{theme.disqusjs.shortname}',
siteName: '!{theme.disqusjs.siteName}',
identifier: '!{ page.path }',
url: '!{ page.permalink }',
title: '!{ disqusjsPageTitle }',
api: '!{disqusjsApi}',
apikey: '!{theme.disqusjs.apikey}',
nocomment: '!{theme.disqusjs.nocomment}',
admin: '!{theme.disqusjs.admin}',
adminLabel: '!{theme.disqusjs.adminLabel}'
});
},!{JSON.stringify(theme.disqusjs.option)}))
}
window.disqusReset = initDisqusjs
if (window.disqusJsLoad) initDisqusjs()