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

github.com/themefisher/timer-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2020-04-16 06:29:26 +0300
committersomrat <monnaf37@gmail.com>2020-04-16 06:29:26 +0300
commit5f85b173dab0e81e13b55168277d223957472975 (patch)
tree7869700efe463b3be6c94f8676d915f82ae2f580
parent421d64fd5a459a469a6bb93b685c833da35c986d (diff)
modified contact form
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/contact/list.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 6f8592d..75932ce 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -37,6 +37,8 @@ description = "Airspace Hugo theme"
author = "Themefisher"
# Google Analitycs
googleAnalitycsID = "Your ID"
+# contact form action
+contactFormAction = "#" # contact form works with https://formspree.io
# Banner Section
[params.banner]
diff --git a/layouts/contact/list.html b/layouts/contact/list.html
index 6d89283..4687040 100644
--- a/layouts/contact/list.html
+++ b/layouts/contact/list.html
@@ -12,7 +12,7 @@
{{ with .Site.Data.contact.contactFormTitle }}<h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">{{ . }}</h2>{{ end }}
{{ with .Site.Data.contact.contactFormSubtitle }}<p class="subtitle-des wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">{{ . }}</p>{{ end }}
<div class="contact-form">
- <form id="contact-form" method="#" action="#" role="form">
+ <form id="contact-form" method="POST" action="{{ .Site.Params.contactFormAction }}">
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".6s">
<input type="text" placeholder="Your Name" class="form-control" name="name" id="name">