Browse Source

add Cactus Comments

main
Hendrik Langer 3 years ago
parent
commit
ad9aa4176f
  1. 10
      content/guestbook/_index.de.md
  2. 10
      content/guestbook/_index.en.md
  3. 13
      layouts/shortcodes/chat.html

10
content/guestbook/_index.de.md

@ -0,0 +1,10 @@
---
title: Gästebuch
description: Öffentliches Gästebuch
menu: "main"
weight: 50
#date: 2021-11-19
translationKey: "guestbook"
---
{{< chat guestbook >}}

10
content/guestbook/_index.en.md

@ -0,0 +1,10 @@
---
title: Guestbook
description: Public Guestbook
menu: "main"
weight: 50
#date: 2021-11-19
translationKey: "guestbook"
---
{{< chat guestbook >}}

13
layouts/shortcodes/chat.html

@ -0,0 +1,13 @@
<script type="text/javascript" src="https://chat.xd0.de/_cactus/cactus.js"></script>
<link rel="stylesheet" href="https://chat.xd0.de/_cactus/style.css" type="text/css" />
<div id="comment-section"></div>
<script>
initComments({
node: document.getElementById("comment-section"),
defaultHomeserverUrl: "https://xd0.de",
serverName: "xd0.de",
siteName: "h3ndrik.de",
commentSectionId: "{{ index .Params 0 }}",
guestPostingEnabled: true
})
</script>
Loading…
Cancel
Save