From 9b228cfb7fd0b0420204f7f27304d798785787e9 Mon Sep 17 00:00:00 2001 From: junichim Date: Thu, 5 Aug 2021 05:34:08 +0900 Subject: enable reCAPTCHA widget in contact form page (#278) * enable reCAPTCHA widget in your page * If condition in one line. * Updated doc. Co-authored-by: Guillermo Guerrero Ibarra --- exampleSite/config.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 328fc66..c11f45c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -107,6 +107,23 @@ paginate = 10 formspree_action = "https://formspree.io/sample/of/endpoint" contact_form_ajax = false + # Formspree form supports Google reCAPTCHA Key (type v2). + # If you use this feature, you should enable reCAPTCHA feature in the Formspree dashboard. + # + # By default, Formspree use a redirect page for recaptcha widget. + # If you use a recaptcha widget in your contact page, you should do next steps. + # (if you don't want, skip these steps) + # + # 1. register your site on Google recaptcha admin page: https://www.google.com/recaptcha/admin + # 2. select reCAPTCHA v2 and checkbox widget type. + # 3. remember site key and secret key. + # 4. enter secret key into "Custom reCAPTCHA Key" field in your Formspree form setting page. + # 5. change `enableRecaptchaInContactForm` is to true + # 6. enter site key into `googleRecaptchaKey` to enable a recaptcha widget in your page. + # + enableRecaptchaInContactForm = false + googleRecaptchaKey = "site_key_for_google_recaptcha" + about_us = "

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

" copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." -- cgit v1.2.3