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 ✉️

-