diff options
author | Tobias Sachs <tobias@tobiassachs.de> | 2017-04-27 23:08:57 +0300 |
---|---|---|
committer | Tobias Sachs <tobias@tobiassachs.de> | 2017-04-27 23:08:57 +0300 |
commit | 5489fb87962c22ce7228fb9266cde8dd02ce3948 (patch) | |
tree | 51d6780672ef4ce6a75bb1272bb188507070b304 | |
parent | ba0fb12ae65dec0d1844f945c80d29030261e6d1 (diff) |
Make the Contact Form also a variable to remove it
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rwxr-xr-x | layouts/partials/contact.html | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 558d4e1..f089114 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 }}
|