From 5489fb87962c22ce7228fb9266cde8dd02ce3948 Mon Sep 17 00:00:00 2001 From: Tobias Sachs Date: Thu, 27 Apr 2017 22:08:57 +0200 Subject: Make the Contact Form also a variable to remove it --- exampleSite/config.toml | 1 + 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 }} - + {{ if .Site.Params.contact.form }}

{{ with .Site.Params.contact.form }}{{ . | markdownify }}{{ end }}

@@ -52,7 +52,7 @@
- + {{ end }} {{ if .Site.Params.contact.map }} -- cgit v1.2.3