Replace commento with remark

This commit is contained in:
Jake Howard 2023-11-06 21:19:18 +00:00
parent 6248a0665a
commit ce2ee9e94c
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 19 additions and 40 deletions

View file

@ -14,6 +14,10 @@ function handleDarkMode(darkMode) {
} else {
htmlTag.classList.remove(DARK_MODE_CLASS);
}
if (window.REMARK42) {
window.REMARK42.changeTheme(darkMode ? "dark" : "light");
}
}
if (window.localStorage.getItem(STORAGE_KEY) === null) {

View file

@ -1,35 +0,0 @@
#commento {
.commento-profile-button {
@include dark-mode {
fill: $dark-mode-text;
}
}
.commento-name,
#commento-mod-tools-lock-button,
.commento-login-text,
.commento-anonymous-checkbox-container label {
@include dark-mode {
color: $dark-mode-text;
}
}
#commento-textarea-root,
#commento-guest-details-input-root,
.commento-textarea-container textarea {
@include dark-mode {
background-color: $black;
color: $dark-mode-text;
}
}
.commento-card {
@include dark-mode {
border-top: 1px solid color.adjust($black, $alpha: -0.4);
p {
color: $dark-mode-text;
}
}
}
}

View file

@ -0,0 +1,3 @@
section.comments {
margin-top: 2rem;
}

View file

@ -19,7 +19,7 @@
@import "spotify";
@import "404";
@import "password_required";
@import "commento";
@import "comments";
@import "similar_content";
@import "support_pill";

View file

@ -1,5 +1,13 @@
<section class="container">
<div id="commento"></div>
<section class="container comments">
<div id="remark42"></div>
</section>
<script async defer src="https://commento.theorangeone.net/js/commento.js"></script>
<script>
var remark_config = {
host: 'https://remark.theorangeone.net',
site_id: 'theorangeone',
no_footer: true
}
</script>
<script type="module" async defer src="https://remark.theorangeone.net/web/embed.mjs"></script>

View file

@ -18,7 +18,6 @@
{% block meta %}
{{ block.super }}
<link rel="canonical" href="{{ object.get_meta_url }}" />
<meta name="color-scheme" content="dark light" />
<meta name="author" content="TheOrangeOne" />
<meta name="creator" content="TheOrangeOne" />
<meta name="publisher" content="TheOrangeOne" />