diff --git a/_config.yml b/_config.yml index da4ee3d..4e1fb42 100644 --- a/_config.yml +++ b/_config.yml @@ -659,7 +659,7 @@ artalk: # -------------------------------------- chat: - # Choose: chatra/tidio/crisp + # Choose: chatra/tidio/crisp/knocket # Leave it empty if you don't need chat use: # Chat Button [recommend] diff --git a/layout/includes/third-party/chat/index.pug b/layout/includes/third-party/chat/index.pug index dada453..ace9b3b 100644 --- a/layout/includes/third-party/chat/index.pug +++ b/layout/includes/third-party/chat/index.pug @@ -4,4 +4,6 @@ case theme.chat.use when 'tidio' include ./tidio.pug when 'crisp' - include ./crisp.pug \ No newline at end of file + include ./crisp.pug + when 'knocket' + include ./knocket.pug \ No newline at end of file diff --git a/layout/includes/third-party/chat/knocket.pug b/layout/includes/third-party/chat/knocket.pug new file mode 100644 index 0000000..11ce1db --- /dev/null +++ b/layout/includes/third-party/chat/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)