diff options
Diffstat (limited to 'layouts/partials/formspree.html')
-rw-r--r-- | layouts/partials/formspree.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/formspree.html b/layouts/partials/formspree.html new file mode 100644 index 0000000..c940e2c --- /dev/null +++ b/layouts/partials/formspree.html @@ -0,0 +1,13 @@ +{{ if .Site.Params.Email }} +<hr /> +<div id="formspree" class='formspree'> + <h2>CONTACT ME</h2> + <form action="https://formspree.io/{{ .Site.Params.Email }}" method="POST"> + <input type="text" name="_gotcha" style="display:none" /> + <input type="hidden" name="subject" value="comment to: {{ .Title }}"> + <input type="email" name="email" placeholder="Your email" required> + <textarea name="message" placeholder="Your message" rows=5 required></textarea> + <button type="submit">Send</button> + </form> +</div> +{{ end }} |