diff options
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> | ||
