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"
|
||||
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
|
||||
|
||||
[fastcomments]
|
||||
enable = false
|
||||
tenantId = "demo"
|
||||
|
||||
[socialOptions]
|
||||
email = "mailto:your@email.com"
|
||||
phone = ""
|
||||
|
|
|
@ -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 }}
|
|
@ -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