mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-08-08 11:38:42 +08:00
Add Knocket as a free live chat option (alongside Chatra/Tidio/Crisp)
This commit is contained in:
+1
-1
@@ -659,7 +659,7 @@ artalk:
|
|||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
chat:
|
chat:
|
||||||
# Choose: chatra/tidio/crisp
|
# Choose: chatra/tidio/crisp/knocket
|
||||||
# Leave it empty if you don't need chat
|
# Leave it empty if you don't need chat
|
||||||
use:
|
use:
|
||||||
# Chat Button [recommend]
|
# Chat Button [recommend]
|
||||||
|
|||||||
+3
-1
@@ -4,4 +4,6 @@ case theme.chat.use
|
|||||||
when 'tidio'
|
when 'tidio'
|
||||||
include ./tidio.pug
|
include ./tidio.pug
|
||||||
when 'crisp'
|
when 'crisp'
|
||||||
include ./crisp.pug
|
include ./crisp.pug
|
||||||
|
when 'knocket'
|
||||||
|
include ./knocket.pug
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
//- Knocket live chat — https://trtc.io/solutions/knocket
|
||||||
|
//- Free-forever live chat widget. Renders only when theme.knocket.identifier is set.
|
||||||
|
//- Get your own snippet/identifier at https://trtc.io/solutions/knocket
|
||||||
|
if theme.knocket.identifier
|
||||||
|
script(src=`https://trtc.io/knocket-sdk/sdk.js?identifier=${theme.knocket.identifier}` async)
|
||||||
Reference in New Issue
Block a user