Replies: 3 comments 3 replies
-
waline https://waline.js.org/ |
Beta Was this translation helpful? Give feedback.
-
You can also write something simple yourself. You don't need a database, just normal free hosting where the data will be written. |
Beta Was this translation helpful? Give feedback.
-
Before i used Remark42. It worked before, so i will give it a try. <script>
var remark_config = {
host: "REMARK_URL",
site_id: "YOUR_SITE_ID",
}
</script> and this <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> I have the following code, but get this error in the browser .vitepress/theme/index.mjs import Layout from "./Layout.vue";
export default {
Layout,
}; .vitepress/theme/Layout.vue <!-- .vitepress/theme/Layout.vue -->
<script setup>
import DefaultTheme from "vitepress/theme";
import Comments from "./components/Remark42Comments.vue";
const { Layout } = DefaultTheme;
</script>
<template>
<Layout>
<template #doc-after>
<Comments />
</template>
</Layout>
</template> .vitepress/theme/components/Remark42Comments.vue <script setup>
import { useData } from "vitepress";
const remark_config = {
host: "https://comments.myDomain.com",
site_id: "remark",
};
const { title } = useData();
!(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>
<template>
<div id="remark42" ref="remark42" :key="title"></div>
</template>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
which comment system do you use, besides giscus?
I am looking for system which supports social login, because not everyone has a GitHub account.
Beta Was this translation helpful? Give feedback.
All reactions