mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-09-14 06:50:20 +00:00
Add Knocket live chat service (#970)
This commit is contained in:
parent
80c1fb56cb
commit
12b2ee283d
@ -886,6 +886,13 @@ tidio:
|
|||||||
enable: false
|
enable: false
|
||||||
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer
|
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
|
# CDN Settings
|
||||||
|
|||||||
5
layout/_third-party/chat/knocket.njk
vendored
Normal file
5
layout/_third-party/chat/knocket.njk
vendored
Normal 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 %}
|
||||||
2
layout/_third-party/index.njk
vendored
2
layout/_third-party/index.njk
vendored
@ -8,6 +8,8 @@
|
|||||||
{%- include 'chat/chatra.njk' -%}
|
{%- include 'chat/chatra.njk' -%}
|
||||||
{%- elif theme.tidio.enable %}
|
{%- elif theme.tidio.enable %}
|
||||||
{%- include 'chat/tidio.njk' -%}
|
{%- include 'chat/tidio.njk' -%}
|
||||||
|
{%- elif theme.knocket.enable %}
|
||||||
|
{%- include 'chat/knocket.njk' -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- include 'tags/pdf.njk' -%}
|
{%- include 'tags/pdf.njk' -%}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user