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:
-rw-r--r--exampleSite/config.toml1
-rwxr-xr-xlayouts/partials/contact.html4
-rwxr-xr-xlayouts/partials/footer.html2
3 files changed, 4 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index ae10ed8..8b14fbc 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -256,6 +256,7 @@ theme = "hugo-elate-theme"
[params.contact]
enable = true
map = true
+ form = true
title = "Get in touch"
description = "Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts."
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html
index 03c2baa..471a7b6 100755
--- a/layouts/partials/contact.html
+++ b/layouts/partials/contact.html
@@ -19,7 +19,7 @@
{{ end }}
</ul>
</div>
-
+ {{ if .Site.Params.contact.form }}
<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 }}">
@@ -52,7 +52,7 @@
</div>
</form>
</div>
-
+ {{ end }}
</div>
</div>
{{ if .Site.Params.contact.map }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 829be25..c1e0676 100755
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -17,4 +17,4 @@
</div>
</div>
</div>
- </footer> \ No newline at end of file
+ </footer>