jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
308 stars 227 forks source link

Add subscribe form (netlify) #111

Open dudil opened 6 years ago

dudil commented 6 years ago

Description

I've added a form that will allow sites hosting on Netlify to set a subscribe (email) forms

Motivation and Context

I wanted to set up an email subscription list to my blog site in order to keep in touch with readers. The Contact us didn't served for this purpose so I've added a new form for subscribe.

This Form is using the Netlify support to fire up a Zapier zap and send the subscribes to the preferred email service (in my case it is Emailoctopus)

How Has This Been Tested?

This change is already live on my Blog and working fine with the above integration. (Netlify -> Zapier -> Emailoctopus)

While I could utilised the contact us form to be more generic, this approach will lead to code break with exist contact us forms.

! - I updated the exampleSite but didn't added this change into the description file. If needed and approved, I'll be happy to do so

Hugo Version: 0.34

Browser(s): Safari (iOS / OSX)

Screenshots (if appropriate):

Types of changes

Checklist:

pacollins commented 6 years ago

Could you add a generic version too? Feel free to reference the contact form that checks if Netlify is enabled (via Front Matter) to use Netlify form handling and allows the user more freedom if they don't use Netlify?

pacollins commented 6 years ago

@dudil Any progress on this? No rush, I'm just checking all the PRs.

dudil commented 6 years ago

@pacollins - not yet.