Skip to content

Commit

Permalink
Add name to fields in form (#23)
Browse files Browse the repository at this point in the history
As per
https://formspree.io/html/

"Formspree will save any fields with a name attribute."

Reported by @hannes-lehmann
  • Loading branch information
zetxek authored May 10, 2024
1 parent 4f2c6e6 commit 5dc88fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ <h2>{{ .Site.Data.homepage.contact.title }}</h2>
<form action="{{ .Site.Data.homepage.contact.form.action }}" method="{{ .Site.Data.homepage.contact.form.method }}">
<div class="row">
<div class="col-12 col-sm-6">
<input type="text" name="" id="full_name"
<input type="text" name="full_name" id="full_name"
placeholder="{{ .Site.Data.homepage.contact.form.full_name }}"/>
</div>
<div class="col-12 col-sm-6">
<input type="text" name="" id="email"
<input type="text" name="email" id="email"
placeholder="{{ .Site.Data.homepage.contact.form.email }}"/>
</div>
</div>
<div class="row pt-4">
<div class="col-12">
<textarea name="" id="message"
<textarea name="message" id="message"
cols="30" rows="3" placeholder="{{ .Site.Data.homepage.contact.form.message }}"></textarea>
</div>
</div>
Expand Down

0 comments on commit 5dc88fb

Please sign in to comment.