Remove cactus comments functionality
It's kinda busted and I want to eventually migrate to mastodon based comments
This commit is contained in:
parent
05fc5efc82
commit
98e457099c
4 changed files with 2 additions and 379 deletions
|
@ -14,15 +14,6 @@ unit class Config;
|
|||
method generate-post(Int:D $id, Post:D $post, $db) {
|
||||
my $meta = $db.meta;
|
||||
my $content = $post.render-html;
|
||||
my $cactus-script = qq「」
|
||||
document.addEventListener('DOMContentLoaded', () => \{
|
||||
initComments(\{
|
||||
node: document.getElementById("comment-section"),
|
||||
defaultHomeserverUrl: "https://matrix.cactus.chat",
|
||||
serverName: "cactus.chat",
|
||||
siteName: "stranger.systems",
|
||||
commentSectionId: "post-$id"
|
||||
\})\})」;
|
||||
my $head =
|
||||
head [
|
||||
# Generate the universal header components
|
||||
|
@ -39,13 +30,6 @@ initComments(\{
|
|||
meta :property<article:tag>, :content($tag)
|
||||
});
|
||||
|
||||
# Cactus comments support
|
||||
link :rel<stylesheet>,
|
||||
:href</resources/cactus.css>,
|
||||
:type<text/css>;
|
||||
script :src<https://gateway.pinata.cloud/ipfs/QmSiWN27KZZ1XE32jKwifBnS3nWTUcFGNArKzur2nmDgoL/v0.13.0/cactus.js>;
|
||||
# Only actually load the script if the post isn't hidden
|
||||
optl !$post.hidden, -> {script $cactus-script};
|
||||
];
|
||||
my $body =
|
||||
body [
|
||||
|
@ -66,8 +50,6 @@ initComments(\{
|
|||
];
|
||||
}
|
||||
];
|
||||
# Only actually have the comment section if the post isn't hidden
|
||||
optl !$post.hidden, -> {div :id<comment-section>, :class<comments>};
|
||||
generate-footer;
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue