From 49c95d212c2f877803cadeecc336143e639bcf10 Mon Sep 17 00:00:00 2001 From: Renne Rocha Date: Tue, 13 May 2025 21:52:01 -0300 Subject: [PATCH] Now we can have comments! --- config.yaml | 3 +- layouts/partials/comments/include.html | 112 ++++++++++++++++++ layouts/partials/comments/provider/email.html | 4 - 3 files changed, 114 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/comments/include.html delete mode 100644 layouts/partials/comments/provider/email.html diff --git a/config.yaml b/config.yaml index 98f7108..cf472d4 100644 --- a/config.yaml +++ b/config.yaml @@ -27,9 +27,10 @@ params: # Comments settings comments: enabled: true - provider: email + provider: mastodon commentsEmail: "blog@rennerocha.com" + menu: header: - name: About Me diff --git a/layouts/partials/comments/include.html b/layouts/partials/comments/include.html new file mode 100644 index 0000000..d743d5c --- /dev/null +++ b/layouts/partials/comments/include.html @@ -0,0 +1,112 @@ +{{ if .Site.Params.comments.enabled }} + +
+

If you want to start a discussion about this topic, you can send me an e-mail: blog@rennerocha.com ✉️

+
+ + {{ if .Params.mastodon_id}} +
+

Comments

+
+ Comment by replying to this post on Mastodon. +
+ +
+

Loading comments...

+
+ +
+

Continue discussion on Fediverse »

+
+
+ + + + + +{{ end }} + +{{ end }} diff --git a/layouts/partials/comments/provider/email.html b/layouts/partials/comments/provider/email.html deleted file mode 100644 index 74fc4d7..0000000 --- a/layouts/partials/comments/provider/email.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

Comments

-

If you want to start a discussion about this, you can send me an e-mail: blog@rennerocha.com ✉️

-