mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
breaking changes: 精簡各評論的配置
fix: 修復footer 在部分瀏覽器沒有顯示在底部的 bug improvement: 修改配置文件註釋
This commit is contained in:
1 parent
bbb9beb8f9
commit
43790dec07
9 files changed
+15
-50
No files matched your search
+3
-20
@@ -281,12 +281,8 @@ disqus:
|
|||||||
# https://github.com/SukkaW/DisqusJS
|
# https://github.com/SukkaW/DisqusJS
|
||||||
disqusjs:
|
disqusjs:
|
||||||
shortname:
|
shortname:
|
||||||
siteName:
|
|
||||||
apikey:
|
apikey:
|
||||||
api:
|
option:
|
||||||
nocomment: # display when a blog post or an article has no comment attached
|
|
||||||
admin:
|
|
||||||
adminLabel:
|
|
||||||
|
|
||||||
# livere (來必力)
|
# livere (來必力)
|
||||||
# https://www.livere.com/
|
# https://www.livere.com/
|
||||||
@@ -301,11 +297,6 @@ gitalk:
|
|||||||
repo:
|
repo:
|
||||||
owner:
|
owner:
|
||||||
admin:
|
admin:
|
||||||
language: en # en, zh-CN, zh-TW, es-ES, fr, ru
|
|
||||||
perPage: 10 # Pagination size, with maximum 100.
|
|
||||||
distractionFreeMode: false # Facebook-like distraction free mode.
|
|
||||||
pagerDirection: last # Comment sorting direction, available values are last and first.
|
|
||||||
createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically
|
|
||||||
option:
|
option:
|
||||||
|
|
||||||
# valine
|
# valine
|
||||||
@@ -313,17 +304,9 @@ gitalk:
|
|||||||
valine:
|
valine:
|
||||||
appId: # leancloud application app id
|
appId: # leancloud application app id
|
||||||
appKey: # leancloud application app key
|
appKey: # leancloud application app key
|
||||||
pageSize: 10 # comment list page size
|
|
||||||
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
||||||
lang: en # i18n: zh-CN/zh-TW/en/ja
|
|
||||||
placeholder: Please leave your footprints # valine comment input placeholder (like: Please leave your footprints)
|
|
||||||
guest_info: nick,mail,link # valine comment header info (nick/mail/link)
|
|
||||||
recordIP: false # Record reviewer IP
|
|
||||||
serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
|
serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
|
||||||
bg: # valine background
|
bg: # valine background
|
||||||
emojiCDN: # emoji CDN
|
|
||||||
enableQQ: false # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
|
|
||||||
requiredFields: nick,mail # required fields (nick/mail)
|
|
||||||
visitor: false
|
visitor: false
|
||||||
option:
|
option:
|
||||||
|
|
||||||
@@ -461,9 +444,9 @@ google_adsense:
|
|||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
site_verification:
|
site_verification:
|
||||||
# - name: google_site_verification
|
# - name: google-site-verification
|
||||||
# content: xxxxxx
|
# content: xxxxxx
|
||||||
# - name: baidu_site_verification
|
# - name: baidu-site-verification
|
||||||
# content: xxxxxxx
|
# content: xxxxxxx
|
||||||
|
|
||||||
# Beautify/Effect (美化/效果)
|
# Beautify/Effect (美化/效果)
|
||||||
|
|||||||
+3
-8
@@ -1,4 +1,3 @@
|
|||||||
- let disqusjsApi = theme.disqusjs.api || 'https://disqus.skk.moe/disqus/'
|
|
||||||
- let disqusjsPageTitle = page.title.replace(/'/ig,"\\'")
|
- let disqusjsPageTitle = page.title.replace(/'/ig,"\\'")
|
||||||
|
|
||||||
script.
|
script.
|
||||||
@@ -12,20 +11,16 @@ script.
|
|||||||
|
|
||||||
function initDisqusjs () {
|
function initDisqusjs () {
|
||||||
window.DISQUS = null
|
window.DISQUS = null
|
||||||
new DisqusJS({
|
new DisqusJS(Object.assign({
|
||||||
shortname: '!{theme.disqusjs.shortname}',
|
shortname: '!{theme.disqusjs.shortname}',
|
||||||
siteName: '!{theme.disqusjs.siteName}',
|
|
||||||
identifier: '!{ page.path }',
|
identifier: '!{ page.path }',
|
||||||
url: '!{ page.permalink }',
|
url: '!{ page.permalink }',
|
||||||
title: '!{ disqusjsPageTitle }',
|
title: '!{ disqusjsPageTitle }',
|
||||||
api: '!{disqusjsApi}',
|
|
||||||
apikey: '!{theme.disqusjs.apikey}',
|
apikey: '!{theme.disqusjs.apikey}',
|
||||||
nocomment: '!{theme.disqusjs.nocomment}',
|
},!{JSON.stringify(theme.disqusjs.option)}))
|
||||||
admin: '!{theme.disqusjs.admin}',
|
|
||||||
adminLabel: '!{theme.disqusjs.adminLabel}'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
window.disqusReset = initDisqusjs
|
window.disqusReset = initDisqusjs
|
||||||
|
|
||||||
if (window.disqusJsLoad) initDisqusjs()
|
if (window.disqusJsLoad) initDisqusjs()
|
||||||
|
|||||||
@@ -15,11 +15,6 @@ script.
|
|||||||
owner: '!{theme.gitalk.owner}',
|
owner: '!{theme.gitalk.owner}',
|
||||||
admin: ['!{theme.gitalk.admin}'],
|
admin: ['!{theme.gitalk.admin}'],
|
||||||
id: '!{md5(page.path)}',
|
id: '!{md5(page.path)}',
|
||||||
language: '!{theme.gitalk.language}',
|
|
||||||
perPage: !{theme.gitalk.perPage},
|
|
||||||
distractionFreeMode: !{theme.gitalk.distractionFreeMode},
|
|
||||||
pagerDirection: '!{theme.gitalk.pagerDirection}',
|
|
||||||
createIssueManually: !{theme.gitalk.createIssueManually},
|
|
||||||
updateCountCallback: commentCount
|
updateCountCallback: commentCount
|
||||||
},!{JSON.stringify(theme.gitalk.option)}))
|
},!{JSON.stringify(theme.gitalk.option)}))
|
||||||
|
|
||||||
|
|||||||
Loaded 3 of 9 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user