Add Knocket live chat service (#970)

This commit is contained in:
rrivory 2026-07-01 16:03:51 +08:00 committed by GitHub
parent 80c1fb56cb
commit 12b2ee283d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View File

@ -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

5
layout/_third-party/chat/knocket.njk vendored Normal file
View File

@ -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 %}
<script{{ ' async' if theme.knocket.async }} src="https://trtc.io/knocket-sdk/sdk.js?identifier={{ theme.knocket.identifier }}"></script>
{%- endif %}

View File

@ -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' -%}