diff options
author | Daniel Saunders <daniel.saunders@gmail.com> | 2021-05-20 01:03:10 +0300 |
---|---|---|
committer | Daniel Saunders <daniel.saunders@gmail.com> | 2021-05-20 01:03:10 +0300 |
commit | 8118f0813665c07e926db8552933066faa2b4c56 (patch) | |
tree | 5987d84a940924731555d41e6503ba5121f56832 | |
parent | fba45c18165bde386be3346e00a0de1ca6b98d2a (diff) |
Closes #3620210520
-rw-r--r-- | exampleSite/config.toml | 10 | ||||
-rw-r--r-- | layouts/partials/contact.html | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5c0e7be..5fe45ca 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -134,14 +134,14 @@ unsafe = true #For formspree, please setup an account at https://formspree.io/ #For netlify, please read https://www.netlify.com/docs/form-handling/ # - #If you use netlify, you'll need to set the confirm_page value (or else users will see a generic netlify response) - #If you use formspree, you'll need to set your formspree email address. + #If you use netlify, you'll need to set the confirm_page value (otherwise users will see a generic netlify response) + #If you use formspree, you'll need to set your formspree form_id. # #If you use php, you need to host this site on a Server capable of running php. # Please edit the /static/contact_mail.php file from the exampleSite. - service = "netlify" - confirm_page = "/contact_thanks" - # formspree_email="" + service = "netlify" #or "formspree" or "php" + confirm_page = "/contact_thanks" #only used by netlify + # form_id="" #only used by formspree [params.footer] diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index 5632339..eb0944e 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -48,7 +48,7 @@ </div>
</form>
{{ else if eq .Site.Params.Contact.service "formspree" }}
- <form method="POST" action="https://formspree.io/{{ .Site.Params.Contact.formspree_email }}">
+ <form method="POST" action="https://formspree.io/f/{{ .Site.Params.Contact.formspree_formid }}">
<div class="row gtr-50 gtr-uniform">
<div class="col-6 col-12-mobilep">
<input type="text" name="name" id="name" value="" aria-label="Name" placeholder="Name" />
|