Remove comments
parent
678702db54
commit
505ca97b6e
@ -1,20 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ $enabled := $page.Param "paige.comments.disable" | not }}
|
|
||||||
{{ $disabledKinds := $page.Param "paige.comments.disable_kinds" }}
|
|
||||||
|
|
||||||
{{ $enabledKind := or (not $disabledKinds) (not (in $disabledKinds $page.Kind)) }}
|
|
||||||
|
|
||||||
{{ if and $enabled $enabledKind }}
|
|
||||||
{{ template "_internal/disqus.html" $page }}
|
|
||||||
{{ partial "paige/comments/cactus.html" $page }}
|
|
||||||
{{ partial "paige/comments/commento.html" $page }}
|
|
||||||
{{ partial "paige/comments/cusdis.html" $page }}
|
|
||||||
{{ partial "paige/comments/graphcomment.html" $page }}
|
|
||||||
{{ partial "paige/comments/hyvor.html" $page }}
|
|
||||||
{{ partial "paige/comments/intensedebate.html" $page }}
|
|
||||||
{{ partial "paige/comments/isso.html" $page }}
|
|
||||||
{{ partial "paige/comments/remark42.html" $page }}
|
|
||||||
{{ partial "paige/comments/replybox.html" $page }}
|
|
||||||
{{ partial "paige/comments/utterances.html" $page }}
|
|
||||||
{{ end }}
|
|
@ -1,19 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ 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">
|
|
||||||
<div id="comment-section"></div>
|
|
||||||
<script>
|
|
||||||
initComments({
|
|
||||||
node: document.getElementById("comment-section"),
|
|
||||||
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
|
|
||||||
serverName: "cactus.chat",
|
|
||||||
siteName: "{{ .site_name | safeJS }}",
|
|
||||||
commentSectionId: "{{ $page.RelPermalink | safeJS }}"
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,9 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.commento" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<div id="commento"></div>
|
|
||||||
<script defer src="{{ .script_url }}"></script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,6 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.cusdis" }}
|
|
||||||
<div class="mb-3" data-app-id="{{ .app_id }}" data-host="{{ .host_url }}" data-page-id="{{ $page.RelPermalink }}" data-page-title="{{ $page.Title }}" data-page-url="{{ $page.Permalink }}" id="cusdis_thread"></div>
|
|
||||||
<script async src="{{ .script_url | default `https://cusdis.com/js/cusdis.es.js` }}"></script>
|
|
||||||
{{ end }}
|
|
@ -1,24 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.graphcomment" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<div id="graphcomment"></div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var __semio__params = {
|
|
||||||
graphcommentId: "{{ .account_id | safeJS }}",
|
|
||||||
behaviour: {
|
|
||||||
uid: "{{ $page.RelPermalink | safeJS }}"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
function __semio__onload() {
|
|
||||||
__semio__gc_graphlogin(__semio__params)
|
|
||||||
}
|
|
||||||
(function() {
|
|
||||||
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
|
||||||
gc.onload = __semio__onload; gc.defer = true; gc.src = 'https://integration.graphcomment.com/gc_graphlogin.js?' + Date.now();
|
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,16 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.hyvor" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<div id="hyvor-talk-view"></div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var HYVOR_TALK_WEBSITE = "{{ .website | safeJS }}";
|
|
||||||
var HYVOR_TALK_CONFIG = {
|
|
||||||
url: false,
|
|
||||||
id: "{{ $page.RelPermalink | safeJS }}"
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script async type="text/javascript" src="//talk.hyvor.com/web-api/embed"></script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,14 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.intensedebate" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<script>
|
|
||||||
var idcomments_acct = "{{ .account_id | safeJS }}";
|
|
||||||
var idcomments_post_id = "{{ $page.RelPermalink | safeJS }}";
|
|
||||||
var idcomments_post_url = "{{ $page.Permalink | safeJS }}";
|
|
||||||
</script>
|
|
||||||
<span id="IDCommentsPostTitle" style="display:none"></span>
|
|
||||||
<script type="text/javascript" src="http://www.intensedebate.com/js/genericCommentWrapperV2.js"></script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,10 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.isso" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<script src="{{ .script_url }}"></script>
|
|
||||||
<div id="isso-thread">
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,15 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.remark42" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<div id="remark42"></div>
|
|
||||||
<script>
|
|
||||||
var remark_config = {
|
|
||||||
host: "{{ .host_url | safeJS }}",
|
|
||||||
site_id: "{{ .site_id | default `remark` | safeJS }}"
|
|
||||||
}
|
|
||||||
</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>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,15 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.replybox" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<div id="replybox"></div>
|
|
||||||
<script>
|
|
||||||
window.replybox = {
|
|
||||||
site: "{{ .site | safeJS }}",
|
|
||||||
identifier: "{{ $page.RelPermalink | safeJS }}"
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script src="https://cdn.getreplybox.com/js/embed.js"></script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,8 +0,0 @@
|
|||||||
{{ $page := . }}
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.comments.utterances" }}
|
|
||||||
<div class="mb-3" id="paige-comments">
|
|
||||||
<script async crossorigin="anonymous" issue-term="{{ .RelPermalink }}" repo="{{ .repo }}" src="https://utteranc.es/client.js" theme="{{ .theme }}"></script>
|
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
Loading…
Reference in New Issue