From 06847f35a19834ff26c60b691522107fa201a7a5 Mon Sep 17 00:00:00 2001
From: Lorenzo Balzani <balzanilo@gmail.com>
Date: Mon, 13 Jun 2022 18:31:55 +0000
Subject: [PATCH] feat: Add reCAPTCHA to the contact form (#365)
---
layouts/partials/contact.html | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html
index 6589869..3293ace 100644
--- a/layouts/partials/contact.html
+++ b/layouts/partials/contact.html
@@ -15,6 +15,9 @@
<textarea class="field-style" name="message" id="message" rows="6" placeholder="{{ i18n "message" }}"></textarea>
</li>
<li>
+ <div class="g-recaptcha" data-sitekey="{{ .Site.Params.contactFormReCaptcha }}"></div>
+ </li>
+ <li>
<input class="field-style" type="submit" value="{{ i18n "send" }}" />
</li>
<li>
--
Gitblit v1.10.0