Add chat shortcode
This commit is contained in:
parent
283602b625
commit
d9d7452da0
12
layouts/shortcodes/chat.html
Normal file
12
layouts/shortcodes/chat.html
Normal file
@ -0,0 +1,12 @@
|
||||
<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="comment-section"></div>
|
||||
<script>
|
||||
initComments({
|
||||
node: document.getElementById("comment-section"),
|
||||
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
|
||||
serverName: "cactus.chat",
|
||||
siteName: "hyteck",
|
||||
commentSectionId: "{{ index .Params 0 }}"
|
||||
})
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user