Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,8 @@ SortBy = "default"
maxLevel = 0
noFonts = false
theme = ""

# Knocket live chat — https://trtc.io/solutions/knocket
# Free forever, no seat limits. Set your identifier to enable.
[knocket]
identifier = ""
1 change: 1 addition & 0 deletions layouts/_partials/footer/include.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ partial "cookies/include.html" . }}
{{ partialCached "footer/components/script.html" . }}
{{ partial "footer/knocket.html" . }}
{{ partial "footer/custom.html" . }}
5 changes: 5 additions & 0 deletions layouts/_partials/footer/knocket.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- with .Site.Params.knocket -}}
{{- if .identifier -}}
<script async src="https://trtc.io/knocket-sdk/sdk.js?identifier={{ .identifier }}"></script>
{{- end -}}
{{- end -}}