Configurable url for contacts form
mr-tron opened this issue · comments
Please add parameter to configuration file for changing action
in contacts form.
https://github.com/SteveLane/hugo-icon/blob/master/layouts/partials/contact-form.html#L9
For example https://formspree.io/ supports same fields so netlify can be transparent replaced with self-hosted server + formspree
Hi @mr-tron - are you able to submit a pull request for how you see this working?
Yes. I am going to do this, but i don`t know when.
@mr-tron, The following worked for me.
First, I checked Formspree on the online test with my e-mail.
Then, I modified contact-form as:
{{ .title }}
{{ .message | markdownify }}
{{ end }}Then, the config.toml as:
Contact section
[params.contact]
enable = true
title = "Contact"
message = "text."
@SteveLane and @mr-tron I created a pull request for conversion to formspree. It can either be merged as is or used as inspiration for something that supports both netlify and formspree.
Thanks @Phinatic - I'll leave as is, as I'm happy with netlify, and don't have the time to parameterise the form to accept either. If you implemented a version that used either, I'd be happy to check it out further and perhaps pull it in.