Browse Source

quick test of cactus comments

master
jk 3 years ago
parent
commit
fa1e7e7419
  1. 1
      themes/nipponalba/layouts/_default/single.html
  2. 14
      themes/nipponalba/layouts/partials/comments.html

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

@ -65,6 +65,7 @@
{{ end }}</section> {{ end }}</section>
<h4>Comments & Replies</h4>{{ partial "webmention.html" $mentions }} <h4>Comments & Replies</h4>{{ partial "webmention.html" $mentions }}
</section>{{ end }}</section> </section>{{ end }}</section>
<section id="comments_frame">{{ partial "comments.html"}}</section>
{{ else if eq .Type "bookmarkof" }} {{ else if eq .Type "bookmarkof" }}
<section class="bookmarks">{{ $cats := slice }} <section class="bookmarks">{{ $cats := slice }}
{{ range .Site.Data.bookmarks }} {{ range .Site.Data.bookmarks }}

14
themes/nipponalba/layouts/partials/comments.html

@ -0,0 +1,14 @@
<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>