Add fastcomments.com support

This commit is contained in:
Yoni 2021-12-25 16:41:36 +02:00
parent 01f9e43e59
commit 50524e6098
3 changed files with 13 additions and 0 deletions

View File

@ -160,6 +160,10 @@ commento = false
scriptSrc = "" # "https://isso.example.com/js/embed.min.js"
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
[fastcomments]
enable = false
tenantId = "demo"
[socialOptions]
email = "mailto:your@email.com"
phone = ""

View File

@ -19,5 +19,7 @@
{{ partial "comments/isso.html" . }}
{{ else if $.Param "telegram.enable" }}
{{ partial "comments/telegram.html" . }}
{{ else if $.Param "fastcomments.enable" }}
{{ partial "comments/fastcomments.html" . }}
{{ end }}
{{ end }}

View File

@ -0,0 +1,7 @@
<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
<div id="fastcomments-widget"></div>
<script>
window.FastCommentsUI(document.getElementById('fastcomments-widget'), {
"tenantId": "{{ .Site.Params.fastcomments.tenantId }}"
});
</script>