diff options
author | saey55 <saey55@users.noreply.github.com> | 2018-01-02 13:20:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 13:20:41 +0300 |
commit | d0d2fabc01c0246d5aa003217e034fed18f2dd9f (patch) | |
tree | 39e5cb5540c6b09c3eb910fcfda4a1fb8c3e6a3b | |
parent | 4df40553019484c8ef770710e5392c201d58461c (diff) | |
parent | 3b76b10ccfb7aaaff5834dccc6147d888a9e4ffa (diff) |
Merge pull request #24 from Knight1/contactform
Contactform should also a variable to disable it
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rwxr-xr-x | layouts/partials/contact.html | 4 | ||||
-rwxr-xr-x | layouts/partials/footer.html | 2 |
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>
|