2022-01-23 07:10:00 -05:00
|
|
|
{{- with .Site.Params.comments.cactus -}}
|
2022-01-23 07:59:21 -05:00
|
|
|
{{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}}
|
2022-01-23 07:10:00 -05:00
|
|
|
|
|
|
|
<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 -}}
|