Add fastcomments.com support
This commit is contained in:
parent
01f9e43e59
commit
50524e6098
|
@ -160,6 +160,10 @@ commento = false
|
||||||
scriptSrc = "" # "https://isso.example.com/js/embed.min.js"
|
scriptSrc = "" # "https://isso.example.com/js/embed.min.js"
|
||||||
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
|
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
|
||||||
|
|
||||||
|
[fastcomments]
|
||||||
|
enable = false
|
||||||
|
tenantId = "demo"
|
||||||
|
|
||||||
[socialOptions]
|
[socialOptions]
|
||||||
email = "mailto:your@email.com"
|
email = "mailto:your@email.com"
|
||||||
phone = ""
|
phone = ""
|
||||||
|
|
|
@ -19,5 +19,7 @@
|
||||||
{{ partial "comments/isso.html" . }}
|
{{ partial "comments/isso.html" . }}
|
||||||
{{ else if $.Param "telegram.enable" }}
|
{{ else if $.Param "telegram.enable" }}
|
||||||
{{ partial "comments/telegram.html" . }}
|
{{ partial "comments/telegram.html" . }}
|
||||||
|
{{ else if $.Param "fastcomments.enable" }}
|
||||||
|
{{ partial "comments/fastcomments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -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>
|
Loading…
Reference in New Issue