aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/partials/comments.html
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-10-07 22:20:29 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-10-07 22:20:29 +0200
commit69356cf90779944324f8c17779d562db4a3fd9e2 (patch)
treefa3599bda0cd92f94056467661ec3c2a2f260567 /themes/simple/layouts/partials/comments.html
parentf4fa1ef9989da487a13d552cfe161a073390fffe (diff)
downloadmitjafelicijan.com-69356cf90779944324f8c17779d562db4a3fd9e2.tar.gz
Added Cactus comment to the site
Diffstat (limited to 'themes/simple/layouts/partials/comments.html')
-rw-r--r--themes/simple/layouts/partials/comments.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/simple/layouts/partials/comments.html b/themes/simple/layouts/partials/comments.html
new file mode 100644
index 0000000..dd73bb4
--- /dev/null
+++ b/themes/simple/layouts/partials/comments.html
@@ -0,0 +1,20 @@
1<section class="comments">
2 <p class="mb-4">You can write me an email at <a href="mailto:m@mitjafelicijan.com" class="underline hover:bg-yellow-100">m@mitjafelicijan.com</a> or comment bellow.</p>
3 <div id="comment-section"></div>
4
5 <script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
6 <link rel="stylesheet" href="_https://latest.cactus.chat/style.css" type="text/css">
7
8 <script>
9 window.addEventListener('load', () => {
10 initComments({
11 node: document.getElementById("comment-section"),
12 defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
13 serverName: "cactus.chat",
14 siteName: "mitjafelicijan.com",
15 commentSectionId: "{{.File}}",
16 updateInterval: 15
17 });
18 });
19 </script>
20</section>