mirror of https://github.com/lxndrblz/anatole.git

Lorenzo Balzani
13.31.2022 06847f35a19834ff26c60b691522107fa201a7a5
feat: Add reCAPTCHA to the contact form (#365)

Added reCAPTCHA to contact form and fixed Italian translation.
3 files modified
6 ■■■■ changed files
exampleSite/config/_default/params.toml 1 ●●●● patch | view | raw | blame | history
i18n/it.toml 2 ●●● patch | view | raw | blame | history
layouts/partials/contact.html 3 ●●●●● patch | view | raw | blame | history
exampleSite/config/_default/params.toml
@@ -15,6 +15,7 @@
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
i18n/it.toml
@@ -42,4 +42,4 @@
other = "Informazioni"
[update]
other = "Aggiorna"
other = "Aggiorna"
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>