Use with action in comments

This commit is contained in:
Will Faught
2024-07-20 12:11:32 -07:00
parent 2e08775930
commit 788bb284bd
6 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
{{ $page := . }}
{{ if $page.Param "paige.comments.cactus" }}
{{ with $page.Param "paige.comments.cactus" }}
<div class="mb-3" id="paige-comments">
<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">
@@ -10,7 +10,7 @@
node: document.getElementById("comment-section"),
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
serverName: "cactus.chat",
siteName: "{{ $page.Param `paige.comments.cactus.account_id` | safeJS }}",
siteName: "{{ .account_id | safeJS }}",
commentSectionId: "{{ $page.RelPermalink | safeJS }}"
})
</script>