From 5e95ec8a4d75e8e52ab91b831ce5a81af6825dfe Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Mon, 9 May 2022 11:05:54 +0200 Subject: [PATCH] Fix: 5 try to fix contact form for netlify form --- layouts/partials/contact_2.html | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/layouts/partials/contact_2.html b/layouts/partials/contact_2.html index e27456c..d99a689 100644 --- a/layouts/partials/contact_2.html +++ b/layouts/partials/contact_2.html @@ -1,16 +1,27 @@ -
-
+{{ $data := index site.Data.contact }} + +{{ if $data.contact.enable }} +{{ with $data.contact}} +{{"" | safeHTML}} +
+
-
-
-

Contact Me

+ {{"" | safeHTML}} +
+
+

{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }} + {{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}

+
+ {{"" | safeHTML}} +
-
+

{{ .content }}

+
@@ -65,7 +76,7 @@
-
+ {{/*
Message could not be send due to captcha not loadable. Please contact us at mail@example.com.
@@ -76,7 +87,7 @@ Message can not be send with javascript disabled. Please contact us at mail@example.com.
- {{/*
+
-
\ No newline at end of file +
+{{ end }} +{{ end }} \ No newline at end of file