Browse Source

quick test of cactus comments

master
jk 3 years ago
parent
commit
a9791b6f6a
  1. 15
      themes/nipponalba/layouts/_default/single.html

15
themes/nipponalba/layouts/_default/single.html

@ -65,7 +65,20 @@
{{ end }}</section>
<h4>Comments & Replies</h4>{{ partial "webmention.html" $mentions }}
</section>{{ end }}</section>
<section id="comments_frame">{{ partial "comments.html"}}</section>
<section id="comments_frame"><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://nipponalba.scot",
serverName: "nipponalba.scot",
siteName: "jk.nipponalba.scot",
commentSectionId: "{{ .Page.Params.slug }}"
})
</script></section>
{{ else if eq .Type "bookmarkof" }}
<section class="bookmarks">{{ $cats := slice }}
{{ range .Site.Data.bookmarks }}