Bakeoff
An R Package
By Eric Anderson in Theme Features R package
July 1, 2019
Hi, I'm the here-bot cat!
Use me to find your way in your website.
- Here I am:
- content/project/bakeoff/index.md
To remove me, delete this line inside that file: {{< here >}}
- My content section is:
- project
- My layout is:
- single
- Images in this page bundle:
- /project/bakeoff/built-in-contact-form-screenshot.png
- /project/bakeoff/built-in-contact-form-thumbnail.png
- /project/bakeoff/featured-hex.png
- /project/bakeoff/formspree-logo.png
Formspree makes it easy to receive submissions from HTML forms on your static website.
Functional Form
This theme has a form-to-email feature built in, thanks to the simple Formspree integration. All you need to activate the form is a valid recipient email address saved in the front matter of the form
(/content/forms/contact.md
). Of course, the example shown below (your@email.here
) must not be used. Please use your actual email address.
# please replace with a valid Formspree form id or email address
formspree_form_id: your@email.here
Update that file and you’re ready to begin receiving submissions. Just submit the active form for the first time, and complete the email address verification step with Formspree, and your contact form is live. The next time someone fills it out, the submission will land in your inbox.
Multiple Layouts
The files included with the theme have a contact page ready for copy/paste, or
you can type hugo new forms/contact.md
and you’re off to the races. There are two
layouts for forms
– split-right
, and split-left
– you guessed it, one puts
the form on the right and the other on the left. You just fill out the front
matter, and the rest is automatic.
# layout options: split-right or split-left
layout: split-right
Both layouts display the page title and description opposite the form, and you
can also choose to show your social icon links if you have those configured in
the config.toml
file.
- Posted on:
- July 1, 2019
- Length:
- 2 minute read, 285 words
- Categories:
- Theme Features R package
- Tags:
- hugo-site