Use with action in comments
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.cactus" }}
|
{{ with $page.Param "paige.comments.cactus" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
|
<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">
|
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
node: document.getElementById("comment-section"),
|
node: document.getElementById("comment-section"),
|
||||||
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
|
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
|
||||||
serverName: "cactus.chat",
|
serverName: "cactus.chat",
|
||||||
siteName: "{{ $page.Param `paige.comments.cactus.account_id` | safeJS }}",
|
siteName: "{{ .account_id | safeJS }}",
|
||||||
commentSectionId: "{{ $page.RelPermalink | safeJS }}"
|
commentSectionId: "{{ $page.RelPermalink | safeJS }}"
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.graphcomment" }}
|
{{ with $page.Param "paige.comments.graphcomment" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<div id="graphcomment"></div>
|
<div id="graphcomment"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var __semio__params = {
|
var __semio__params = {
|
||||||
graphcommentId: "{{ $page.Param `paige.comments.graphcomment.account_id` | safeJS }}",
|
graphcommentId: "{{ .account_id | safeJS }}",
|
||||||
behaviour: {
|
behaviour: {
|
||||||
uid: "{{ $page.RelPermalink | safeJS }}"
|
uid: "{{ $page.RelPermalink | safeJS }}"
|
||||||
}
|
}
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.hyvor" }}
|
{{ with $page.Param "paige.comments.hyvor" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<div id="hyvor-talk-view"></div>
|
<div id="hyvor-talk-view"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var HYVOR_TALK_WEBSITE = "{{ $page.Param "paige.comments.hyvor.account_id" | safeJS }}";
|
var HYVOR_TALK_WEBSITE = "{{ .account_id | safeJS }}";
|
||||||
var HYVOR_TALK_CONFIG = {
|
var HYVOR_TALK_CONFIG = {
|
||||||
url: false,
|
url: false,
|
||||||
id: "{{ $page.RelPermalink | safeJS }}"
|
id: "{{ $page.RelPermalink | safeJS }}"
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.intensedebate" }}
|
{{ with $page.Param "paige.comments.intensedebate" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<script>
|
<script>
|
||||||
var idcomments_acct = "{{ $page.Param "paige.comments.intensedebate.account_id" | safeJS }}";
|
var idcomments_acct = "{{ .account_id | safeJS }}";
|
||||||
var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}";
|
var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}";
|
||||||
var idcomments_post_url = "{{ $page.Permalink | safeJS }}";
|
var idcomments_post_url = "{{ $page.Permalink | safeJS }}";
|
||||||
</script>
|
</script>
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.remark42" }}
|
{{ with $page.Param "paige.comments.remark42" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<div id="remark42"></div>
|
<div id="remark42"></div>
|
||||||
<script>
|
<script>
|
||||||
var remark_config = {
|
var remark_config = {
|
||||||
host: "{{ $page.Param `paige.comments.remark42.host_url` | safeJS }}",
|
host: "{{ .host_url | safeJS }}",
|
||||||
site_id: "{{ $page.Param `paige.comments.remark42.site_id` | default `remark` | safeJS }}"
|
site_id: "{{ .site_id | default `remark` | safeJS }}"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>
|
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.comments.replybox" }}
|
{{ with $page.Param "paige.comments.replybox" }}
|
||||||
<div class="mb-3" id="paige-comments">
|
<div class="mb-3" id="paige-comments">
|
||||||
<div id="replybox"></div>
|
<div id="replybox"></div>
|
||||||
<script>
|
<script>
|
||||||
window.replybox = {
|
window.replybox = {
|
||||||
site: "{{ $page.Param "paige.comments.replybox.account_id" | safeJS }}",
|
site: "{{ .account_id | safeJS }}",
|
||||||
identifier: "{{ $page.RelPermalink | safeJS }}"
|
identifier: "{{ $page.RelPermalink | safeJS }}"
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user