✨ 添加第三方chat服務 crisp

This commit is contained in:
Jerry committed 2020-07-22 13:56:54 +08:00
1 parent 5ee7976c4a
commit 1a2568d645
12 files changed
+163 -127

No files matched your search

+10 -3
View File
@@ -248,8 +248,8 @@ comments:
# Up to two comments system, the first will be shown as default
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments
use:
# - Valine
# - Disqus
# - Valine
# - Disqus
text: true # Display the comment name next to the button
load_begin: false # The second comment system will auto load when visiting the website
count: false # Dispaly comment count in top_img
@@ -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)
+1 -2
View File
@@ -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})
-2
View File
@@ -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