sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Create a default contact page #18

Closed sc0ttj closed 5 years ago

sc0ttj commented 5 years ago

Using the info provided in .site_config, it should be possible to build a contact page that email the site author/owner ($blog_author).

To do:

Use a service to send the emails, like one of these:

(reviews of some of the above here: https://deluxeblogtips.com/best-contact-forms-for-static-websites/) If they fail, use a fallback mailto href link:

<a href="mailto:me@company.com?subject=Hello&body=We+want+to+hire+you">Contact Us</a>

sc0ttj commented 5 years ago

Also

sc0ttj commented 5 years ago

First attempt added ... it uses briskforms.com ...

Users need to create the form at brisk forms, and replace the XXXXXX in the form action attribute.

To make that easier:

Add $blog_email and $blog_briskforms_hash to .site_config, auto replace in contact.html

sc0ttj commented 5 years ago

Current issues:

User must create the form, choosing return page etc at briskforms.

Better solution:

Use formspree or mailthis.to

Workaround:

...using the formspree+JS email injection method is secure, and super easy to setup - user just adds their email to .site_config.