From 9151fdb48ce48c633a9a0368915b88738375da7d Mon Sep 17 00:00:00 2001 From: rrivory <135573448+rrivory@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:22:17 +0800 Subject: [PATCH] Add Knocket as a free live chat option (alongside Chatra/Tidio/Crisp) --- _config.yml | 2 +- layout/includes/third-party/chat/index.pug | 4 +++- layout/includes/third-party/chat/knocket.pug | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 layout/includes/third-party/chat/knocket.pug 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)