We can put our email address on social links so that readers can contact us. Unfortunately, emails will be more or less treated as spam and even filtered. Therefore, we bring a feature called contact form.
We need to create a contact page called
contact/index.md in the
content directory, so that we can access the contact form.
1+++ 2title = "Contact Us" 3layout = "contact" 4+++
Once created, the link will appear in the profile widget.
||String||-||See also Backends.|
||Enable/Disable file upload.|
||String||-||The name of file field.|
Netlify form are supported out of box, therefore, you don’t need to specify the
The demo site uses Getform instead of Netlify form, because the Netlify will upgrade your form level automatically if you exceed the limit of current plan, which will lead to additional expenses.
Please make sure the
contact.endpointparameter is empty if you intend to use Netlify form.
See also Google Cloud Functions example upstream.
Let’s take Getform as an example:
1[contact] 2 endpoint = "YOUR_ENDPOINT"
In addition to set the
contact.reCaptcha.siteKey parameter, you need to perform additional steps according to the backend: