diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-12-20 20:33:57 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-12-20 20:33:57 +0100 |
| commit | 1ac073cc30a23b68371e819c77422b4906dd4f20 (patch) | |
| tree | 52469a6067a714dc93fb5a971ab620dd4a1c6c46 /themes/bare/layouts/partials/comments.html | |
| parent | 6342c2d1cc08bf6edb7f0ffdbdb69ce5b8be62dd (diff) | |
| download | mitjafelicijan.com-1ac073cc30a23b68371e819c77422b4906dd4f20.tar.gz | |
Move to bare theme.
Diffstat (limited to 'themes/bare/layouts/partials/comments.html')
| -rwxr-xr-x | themes/bare/layouts/partials/comments.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/bare/layouts/partials/comments.html b/themes/bare/layouts/partials/comments.html new file mode 100755 index 0000000..b905967 --- /dev/null +++ b/themes/bare/layouts/partials/comments.html | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <section class="comments"> | ||
| 2 | <h2 class="text-xl font-bold mb-2">Leave a comment</h2> | ||
| 3 | <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> | ||
| 4 | <div id="comment-section"></div> | ||
| 5 | |||
| 6 | <script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script> | ||
| 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 | pageSize: 50, | ||
| 17 | updateInterval: 10, | ||
| 18 | }); | ||
| 19 | }); | ||
| 20 | </script> | ||
| 21 | </section> | ||
