mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
✨ 添加第三方chat服務 crisp
This commit is contained in:
1 parent
5ee7976c4a
commit
1a2568d645
12 files changed
+163
-127
No files matched your search
+10
-3
@@ -248,8 +248,8 @@ comments:
|
|||||||
# Up to two comments system, the first will be shown as default
|
# Up to two comments system, the first will be shown as default
|
||||||
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments
|
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments
|
||||||
use:
|
use:
|
||||||
# - Valine
|
# - Valine
|
||||||
# - Disqus
|
# - Disqus
|
||||||
text: true # Display the comment name next to the button
|
text: true # Display the comment name next to the button
|
||||||
load_begin: false # The second comment system will auto load when visiting the website
|
load_begin: false # The second comment system will auto load when visiting the website
|
||||||
count: false # Dispaly comment count in top_img
|
count: false # Dispaly comment count in top_img
|
||||||
@@ -360,6 +360,12 @@ gitter:
|
|||||||
enable: false
|
enable: false
|
||||||
room:
|
room:
|
||||||
|
|
||||||
|
# crisp
|
||||||
|
# https://crisp.chat/en/
|
||||||
|
crisp:
|
||||||
|
enable: false
|
||||||
|
website_id:
|
||||||
|
|
||||||
# Footer Settings
|
# Footer Settings
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
@@ -393,6 +399,7 @@ tencent_analytics:
|
|||||||
# Google Adsense (谷歌廣告)
|
# Google Adsense (谷歌廣告)
|
||||||
google_adsense:
|
google_adsense:
|
||||||
enable: false
|
enable: false
|
||||||
|
auto_ads: true
|
||||||
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
|
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
|
||||||
client:
|
client:
|
||||||
enable_page_level_ads: true
|
enable_page_level_ads: true
|
||||||
@@ -635,7 +642,7 @@ runtimeshow:
|
|||||||
|
|
||||||
# Conversion between Traditional and Simplified Chinese (簡繁轉換)
|
# Conversion between Traditional and Simplified Chinese (簡繁轉換)
|
||||||
translate:
|
translate:
|
||||||
enable: true
|
enable: false
|
||||||
# The text of a button
|
# The text of a button
|
||||||
default: 繁
|
default: 繁
|
||||||
# the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese)
|
# the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese)
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ div
|
|||||||
if theme.preloader
|
if theme.preloader
|
||||||
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
|
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
!=partial('includes/chat/index', {}, {cache:theme.fragment_cache})
|
|
||||||
|
|
||||||
.js-pjax
|
.js-pjax
|
||||||
if is_home() && theme.subtitle.enable
|
if is_home() && theme.subtitle.enable
|
||||||
include ./third-party/subtitle.pug
|
include ./third-party/subtitle.pug
|
||||||
@@ -90,6 +88,7 @@ div
|
|||||||
include ./head/aplayer.pug
|
include ./head/aplayer.pug
|
||||||
|
|
||||||
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
|
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
|
||||||
|
!=partial('includes/chat/index', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
if theme.pjax
|
if theme.pjax
|
||||||
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
|
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ script.
|
|||||||
if (d.head) d.head.appendChild(s);
|
if (d.head) d.head.appendChild(s);
|
||||||
})(document, window, 'Chatra');
|
})(document, window, 'Chatra');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!{theme.chat_btn}) {
|
if (!{theme.chat_btn}) {
|
||||||
var chatBtnFn = () => {
|
var chatBtnFn = () => {
|
||||||
var chatBtn = document.getElementById("chat_btn")
|
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