Remove comments

master
Will Faught 5 months ago
parent 678702db54
commit 505ca97b6e

@ -19,7 +19,6 @@ Paige is designed to put your content front and center, avoiding the typical clu
- Bootstrap styles and icons - Bootstrap styles and icons
- Categories - Categories
- Code shortcode - Code shortcode
- Comments
- Customizable - Customizable
- Dark color scheme - Dark color scheme
- Email shortcode - Email shortcode
@ -193,43 +192,6 @@ style = "" # CSS included at the end of the stylesheet, before style-last.css
message = "Alert!" # Markdown displayed before the page body message = "Alert!" # Markdown displayed before the page body
type = "primary" # Bootstrap alert class type = "primary" # Bootstrap alert class
[paige.comments]
disable = false # Disable all comments
disable_kinds = [] # Page kinds to disable comments for. Examples: ["list"], ["page", "term"].
[paige.comments.cactus] # See https://cactus.chat
site_name = ""
[paige.comments.commento] # See https://commento.io
script_url = ""
[paige.comments.cusdis] # See https://cusdis.com
app_id = ""
host_url = ""
[paige.comments.graphcomment] # See https://graphcomment.com
account_id = ""
[paige.comments.hyvor] # See https://hyvor.com
website = ""
[paige.comments.intensedebate] # See https://intensedebate.com
account_id = ""
[paige.comments.isso] # See https://isso-comments.de
script_url = ""
[paige.comments.remark42] # See https://remark42.com
host_url = ""
site_id = ""
[paige.comments.replybox] # See https://getreplybox.com
site = ""
[paige.comments.utterances] # See https://utteranc.es
repo = ""
theme = ""
[paige.feeds] [paige.feeds]
exclude = false # Exclude this page from feeds exclude = false # Exclude this page from feeds
link_to_page = false # Link to the page instead of the front matter link, if present link_to_page = false # Link to the page instead of the front matter link, if present
@ -1066,8 +1028,6 @@ Page identifiers:
<dd>The site collection pages.</dd> <dd>The site collection pages.</dd>
<dt><code>#paige-collections-header</code></dt> <dt><code>#paige-collections-header</code></dt>
<dd>The site collection pages header.</dd> <dd>The site collection pages header.</dd>
<dt><code>#paige-comments</code></dt>
<dd>The page comments.</dd>
<dt><code>#paige-content</code></dt> <dt><code>#paige-content</code></dt>
<dd>The page content.</dd> <dd>The page content.</dd>
<dt><code>#paige-copyright</code></dt> <dt><code>#paige-copyright</code></dt>

@ -3,5 +3,4 @@
{{ partial "paige/page.html" $page }} {{ partial "paige/page.html" $page }}
{{ partial "paige/list.html" $page }} {{ partial "paige/list.html" $page }}
{{ partial "paige/comments.html" $page }}
{{ end }} {{ end }}

@ -2,5 +2,4 @@
{{ $page := . }} {{ $page := . }}
{{ partial "paige/page.html" $page }} {{ partial "paige/page.html" $page }}
{{ partial "paige/comments.html" $page }}
{{ end }} {{ end }}

@ -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 }}

@ -8,7 +8,6 @@ features = [
"bootstrap styles and icons", "bootstrap styles and icons",
"categories", "categories",
"code shortcode", "code shortcode",
"comments",
"customizable", "customizable",
"dark color scheme", "dark color scheme",
"email shortcode", "email shortcode",

Loading…
Cancel
Save