SteveLane / hugo-icon

Icon theme for Hugo
MIT License
87 stars 67 forks source link

Configurable url for contacts form #6

Closed mr-tron closed 4 years ago

mr-tron commented 6 years ago

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

SteveLane commented 6 years ago

Hi @mr-tron - are you able to submit a pull request for how you see this working?

mr-tron commented 6 years ago

Yes. I am going to do this, but i don`t know when.

nodoambiental commented 5 years ago

@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:

{{ with .Site.Params.contact }}

{{ .title }}

{{ .message | markdownify }}

{{ end }}

Then, the config.toml as:

Contact section

[params.contact] enable = true title = "Contact" message = "text."

blueyetisoftware-jason commented 4 years ago

@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.

https://github.com/SteveLane/hugo-icon/pull/31

SteveLane commented 4 years ago

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.