WIP: Replace commento with remark #86
6 changed files with 19 additions and 40 deletions
|
@ -14,6 +14,10 @@ function handleDarkMode(darkMode) {
|
||||||
} else {
|
} else {
|
||||||
htmlTag.classList.remove(DARK_MODE_CLASS);
|
htmlTag.classList.remove(DARK_MODE_CLASS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.REMARK42) {
|
||||||
|
window.REMARK42.changeTheme(darkMode ? "dark" : "light");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.localStorage.getItem(STORAGE_KEY) === null) {
|
if (window.localStorage.getItem(STORAGE_KEY) === null) {
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
3
static/src/scss/_comments.scss
Normal file
3
static/src/scss/_comments.scss
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
section.comments {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
|
@ -19,7 +19,7 @@
|
||||||
@import "spotify";
|
@import "spotify";
|
||||||
@import "404";
|
@import "404";
|
||||||
@import "password_required";
|
@import "password_required";
|
||||||
@import "commento";
|
@import "comments";
|
||||||
@import "similar_content";
|
@import "similar_content";
|
||||||
@import "support_pill";
|
@import "support_pill";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
<section class="container">
|
<section class="container comments">
|
||||||
<div id="commento"></div>
|
<div id="remark42"></div>
|
||||||
</section>
|
</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>
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
<link rel="canonical" href="{{ object.get_meta_url }}" />
|
<link rel="canonical" href="{{ object.get_meta_url }}" />
|
||||||
<meta name="color-scheme" content="dark light" />
|
|
||||||
<meta name="author" content="TheOrangeOne" />
|
<meta name="author" content="TheOrangeOne" />
|
||||||
<meta name="creator" content="TheOrangeOne" />
|
<meta name="creator" content="TheOrangeOne" />
|
||||||
<meta name="publisher" content="TheOrangeOne" />
|
<meta name="publisher" content="TheOrangeOne" />
|
||||||
|
|
Loading…
Reference in a new issue