Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/contact.html')
-rwxr-xr-xlayouts/partials/contact.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html
index 171e7fc..32fecfb 100755
--- a/layouts/partials/contact.html
+++ b/layouts/partials/contact.html
@@ -22,13 +22,14 @@
<div class="col-md-6 to-animate">
<h3>{{ with .Site.Params.contact.form }}{{ . | markdownify }}{{ end }}</h3>
+ <form method="post" action="//formspree.io/{{ with .Site.Params.email }}{{.}}{{ end }}">
<div class="form-group ">
<label for="name" class="sr-only">{{ with .Site.Params.contact.name }}{{ . | markdownify }}{{ end }}</label>
- <input id="name" class="form-control" placeholder="Name" type="text">
+ <input id="name" class="form-control" name="name" placeholder="Name" type="text">
</div>
<div class="form-group ">
<label for="email" class="sr-only">{{ with .Site.Params.contact.email }}{{ . | markdownify }}{{ end }}</label>
- <input id="email" class="form-control" placeholder="Email" type="email">
+ <input id="email" class="form-control" name="_replyto" placeholder="Email" type="email">
</div>
<div class="form-group ">
<label for="phone" class="sr-only">{{ with .Site.Params.contact.phone }}{{ . | markdownify }}{{ end }}</label>
@@ -36,12 +37,13 @@
</div>
<div class="form-group ">
<label for="message" class="sr-only">{{ with .Site.Params.contact.message }}{{ . | markdownify }}{{ end }}</label>
- <textarea name="" id="message" cols="30" rows="5" class="form-control" placeholder="Message"></textarea>
+ <textarea name="" id="message" cols="30" rows="5" class="form-control" name="message" placeholder="Message"></textarea>
</div>
<div class="form-group ">
<input class="btn btn-primary btn-lg" value="{{ .Site.Params.contact.button | markdownify }}" type="submit">
</div>
</div>
+ </form>
</div>
</div>
@@ -49,4 +51,4 @@
{{ if .Site.Params.contact.map }}
<div id="map" class="to-animate"></div>
{{ end }}
- </section> \ No newline at end of file
+ </section>