diff --git a/exampleSite/content/home/contact.md b/exampleSite/content/home/contact.md index 6459d09f..25188e2b 100644 --- a/exampleSite/content/home/contact.md +++ b/exampleSite/content/home/contact.md @@ -16,5 +16,9 @@ autolink = true # 1: Netlify (requires that the site is hosted by Netlify) # 2: formspree.io email_form = 2 + +# Netlify form settings. +[netlify] + captcha = false # Enable CAPTCHA challenge to reduce spam? +++ diff --git a/layouts/partials/widgets/contact.html b/layouts/partials/widgets/contact.html index ddc46091..d8c6452e 100644 --- a/layouts/partials/widgets/contact.html +++ b/layouts/partials/widgets/contact.html @@ -25,7 +25,7 @@ {{end}}
-
+
@@ -38,6 +38,14 @@
+ {{ if eq $page.Params.email_form 1 }} +
+ +
+ {{ end }} + {{ if $page.Params.netlify.captcha }} +
+ {{ end }}