Skip to content

Commit

Permalink
feat: Add reCAPTCHA to the contact form (#365)
Browse files Browse the repository at this point in the history
Added reCAPTCHA to contact form and fixed Italian translation.
  • Loading branch information
lorenzobalzani authored Jun 13, 2022
1 parent d511a6f commit 06847f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ images = ["images/site-feature-image.png"]
doNotLoadAnimations = false
# Form Spree Contact Form
#contactFormAction = "https://formspree.io/f/your-form-hash-here"
#contactFormReCaptcha = "your-site-key-here"
# Google Fonts
#googleFonts = ["Indie+Flower", "Roboto:ital,wght@0,100;0,400;0,700;1,400"]
# Google Site Verify
Expand Down
2 changes: 1 addition & 1 deletion i18n/it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ other = "Avviso"
other = "Informazioni"

[update]
other = "Aggiorna"
other = "Aggiorna"
3 changes: 3 additions & 0 deletions layouts/partials/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<label for="message">{{ i18n "message" }}</label>
<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>
Expand Down

0 comments on commit 06847f3

Please sign in to comment.