mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
✨ 添加第三方chat服務 crisp
This commit is contained in:
1 parent
5ee7976c4a
commit
1a2568d645
12 files changed
+115
-79
No files matched your search
+8
-1
@@ -360,6 +360,12 @@ gitter:
|
||||
enable: false
|
||||
room:
|
||||
|
||||
# crisp
|
||||
# https://crisp.chat/en/
|
||||
crisp:
|
||||
enable: false
|
||||
website_id:
|
||||
|
||||
# Footer Settings
|
||||
# --------------------------------------
|
||||
|
||||
@@ -393,6 +399,7 @@ tencent_analytics:
|
||||
# Google Adsense (谷歌廣告)
|
||||
google_adsense:
|
||||
enable: false
|
||||
auto_ads: true
|
||||
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
|
||||
client:
|
||||
enable_page_level_ads: true
|
||||
@@ -635,7 +642,7 @@ runtimeshow:
|
||||
|
||||
# Conversion between Traditional and Simplified Chinese (簡繁轉換)
|
||||
translate:
|
||||
enable: true
|
||||
enable: false
|
||||
# The text of a button
|
||||
default: 繁
|
||||
# the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese)
|
||||
|
||||
@@ -60,8 +60,6 @@ div
|
||||
if theme.preloader
|
||||
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
|
||||
|
||||
!=partial('includes/chat/index', {}, {cache:theme.fragment_cache})
|
||||
|
||||
.js-pjax
|
||||
if is_home() && theme.subtitle.enable
|
||||
include ./third-party/subtitle.pug
|
||||
@@ -90,6 +88,7 @@ div
|
||||
include ./head/aplayer.pug
|
||||
|
||||
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
|
||||
!=partial('includes/chat/index', {}, {cache:theme.fragment_cache})
|
||||
|
||||
if theme.pjax
|
||||
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
|
||||
|
||||
@@ -11,8 +11,6 @@ script.
|
||||
if (d.head) d.head.appendChild(s);
|
||||
})(document, window, 'Chatra');
|
||||
|
||||
|
||||
|
||||
if (!{theme.chat_btn}) {
|
||||
var chatBtnFn = () => {
|
||||
var chatBtn = document.getElementById("chat_btn")
|
||||
|
||||
Loaded 3 of 12 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user