Add email as a comments option

This commit is contained in:
Renne Rocha 2025-05-13 14:17:26 -03:00
parent 8ac7064d37
commit 8cfc8b17d0
2 changed files with 7 additions and 2 deletions

View file

@ -26,8 +26,9 @@ params:
# Comments settings # Comments settings
comments: comments:
enabled: false enabled: true
provider: giscus provider: email
commentsEmail: "blog@rennerocha.com"
menu: menu:
header: header:

View file

@ -0,0 +1,4 @@
<div class="comments-container">
<h4>Comments</h4>
<p>If you want to start a discussion about this, you can send me an <strong><a href="mailto:{{ $.Site.Params.comments.commentsEmail }}?subject={{ replace (printf "Re: %s" $.Page.Title) "\"" "'" }}">e-mail: <i>blog@rennerocha.com</i></a></strong> ✉️</p>
</div>