added initial support for cactus comments, put commento comments in its own partial
This commit is contained in:
parent
a260f04d1d
commit
d7cc1a9192
4 changed files with 31 additions and 8 deletions
16
layouts/partials/cactus_chat.html
Normal file
16
layouts/partials/cactus_chat.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{ if site.Params.cactusCommentsSiteName }}
|
||||
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
|
||||
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
|
||||
|
||||
<div id="ficurinia-cactus-comments"></div>
|
||||
|
||||
<script>
|
||||
initComments({
|
||||
node: document.getElementById("ficurinia-cactus-comments"),
|
||||
defaultHomeserverUrl: '{{ site.Params.cactusCommentsHomeserver | default "https://matrix.cactus.chat:8448" }}',
|
||||
serverName: '{{ site.Params.cactusCommentsServerName | default "cactus.chat" }}',
|
||||
siteName: "{{ site.Params.cactusCommentsSiteName }}",
|
||||
commentSectionId: "{{ .File.UniqueID }}"
|
||||
})
|
||||
</script>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue