aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html
blob: ae172d3c2120c3fd3d29d9403b67d468339816d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{- with .Site.Params.comments.cactus -}}
{{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}}

<style>
    .cactus-editor-textarea {
        color: var(--body-text-color);
    }

    .cactus-comment-header {
        color: var(--card-text-color-main);
    }

    .cactus-message-text > p {
        color: var(--body-text-color);
    }
</style>

<div id="comment-section"></div>

<script>
    initComments({
        node: document.getElementById("comment-section"),
        defaultHomeserverUrl: "{{ .defaultHomeserverUrl | safeJS }}",
        serverName: "{{ .serverName }}",
        siteName: "{{ .siteName }}",
        commentSectionId: "{{ $.File.UniqueID }}"
    })
</script>
{{- end -}}