From 12b2ee283df531373d44463e5ad5b9feff4a7752 Mon Sep 17 00:00:00 2001 From: rrivory <135573448+rrivory@users.noreply.github.com> Date: Wed, 1 Jul 2026 16:03:51 +0800 Subject: [PATCH] Add Knocket live chat service (#970) --- _config.yml | 7 +++++++ layout/_third-party/chat/knocket.njk | 5 +++++ layout/_third-party/index.njk | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 layout/_third-party/chat/knocket.njk diff --git a/_config.yml b/_config.yml index f23ced5..033fb08 100644 --- a/_config.yml +++ b/_config.yml @@ -886,6 +886,13 @@ tidio: enable: false key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer +# Knocket is a 100% free live chat widget by Tencent RTC. +# For more information: https://trtc.io/solutions/knocket +knocket: + enable: false + async: true + identifier: # Get it from https://trtc.io/solutions/knocket + # --------------------------------------------------------------- # CDN Settings diff --git a/layout/_third-party/chat/knocket.njk b/layout/_third-party/chat/knocket.njk new file mode 100644 index 0000000..3aa5511 --- /dev/null +++ b/layout/_third-party/chat/knocket.njk @@ -0,0 +1,5 @@ +{#- Knocket live chat — https://trtc.io/solutions/knocket -#} +{#- Free-forever live chat widget. Get your identifier at https://trtc.io/solutions/knocket -#} +{%- if theme.knocket.identifier %} + +{%- endif %} diff --git a/layout/_third-party/index.njk b/layout/_third-party/index.njk index f027ff0..1bd7775 100644 --- a/layout/_third-party/index.njk +++ b/layout/_third-party/index.njk @@ -8,6 +8,8 @@ {%- include 'chat/chatra.njk' -%} {%- elif theme.tidio.enable %} {%- include 'chat/tidio.njk' -%} +{%- elif theme.knocket.enable %} + {%- include 'chat/knocket.njk' -%} {%- endif %} {%- include 'tags/pdf.njk' -%}