Move comments into separate files
This commit is contained in:
19
layouts/partials/paige/comments/cactus.html
Normal file
19
layouts/partials/paige/comments/cactus.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ if $page.Param "paige.comments.cactus" }}
|
||||
<section class="mb-3">
|
||||
<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: "{{ $page.Param `paige.comments.cactus.account_id` | safeJS }}",
|
||||
commentSectionId: "{{ $page.RelPermalink | safeJS }}"
|
||||
})
|
||||
</script>
|
||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
||||
</section>
|
||||
{{ end }}
|
Reference in New Issue
Block a user