diff options
author | zzossig <zzossig@gmail.com> | 2020-12-10 01:10:42 +0300 |
---|---|---|
committer | zzossig <zzossig@gmail.com> | 2020-12-10 01:10:42 +0300 |
commit | 20179cb2a2b06d7f7fe2128fef47febb847b0b07 (patch) | |
tree | a458727af09e66210666b5349c30617251fe3d95 | |
parent | 7c1c61b6bfafca1f0a1b0c9e2970c044a5d44fbc (diff) |
netlify-form recaptcha, spam block added
-rw-r--r-- | layouts/partials/contact/netlifyform.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/partials/contact/netlifyform.html b/layouts/partials/contact/netlifyform.html index 8715161..aa47db9 100644 --- a/layouts/partials/contact/netlifyform.html +++ b/layouts/partials/contact/netlifyform.html @@ -1,5 +1,9 @@ -<form action={{ $.Param "redirect-after-submit" }} name="contact" method="POST" data-netlify="true" class="contact__form"> +<form action={{ $.Param "redirect-after-submit" }} name="contact" method="POST" netlify-honeypot="bot-field" data-netlify="true" class="contact__form"> <div class="contact__input--container"> + <div class="hide"> + <label>Don't Fill This in If You Are Human: </label> + <input type="text" name="bot-field" /> + </div> <div class="contact__input--wrapper"> <label class="contact__label"> {{ i18n "contact-name" }} @@ -19,6 +23,11 @@ </label> <textarea name="message" class="contact__message" aria-label="{{ i18n "contact-message" }}"></textarea> </div> + + {{ if ($.Param "recaptcha") }} + <div data-netlify-recaptcha="true" class="contact__input--wrapper"></div> + {{ end }} + <input type="submit" value="{{ i18n "contact-send" }}" class="contact__send"> </form> |