hugo-hyperskip

Email-powered static comments for Hugo

git clone git://git.shimmy1996.com/hugo-hyperskip.git
commit 7e3311b57b53c0bcfd539e51630e1ab2ac56eeaf
parent 4bed6e9ae1060a39f7136e8d86024dc7e5a5a893
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu,  9 Jan 2020 09:52:44 -0600

Transparent mangling for email address

Diffstat:
Mlayouts/partials/comment_form.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/comment_form.html b/layouts/partials/comment_form.html
@@ -1,4 +1,4 @@
-<form action="mailto:{{ $.Site.Author.email }}?subject=RE:{{ $.Page.RelPermalink }}"
+<form action="mailto:{{ $.Site.Author.email | replaceRE "@" "%40" }}?subject=RE:{{ $.Page.RelPermalink }}"
       method="post"
       name="comment_form">
   <p><label for="name">{{ i18n "hyperskip-name" }}</label><br/>