Fix: 5 try to fix contact form for netlify form

This commit is contained in:
Aroy-Art 2022-05-09 11:05:54 +02:00
parent a2fc878a31
commit 5e95ec8a4d
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -1,16 +1,27 @@
<section id="contact" class="fragment"> {{ $data := index site.Data.contact }}
<div class="container-fluid bg-dark">
{{ if $data.contact.enable }}
{{ with $data.contact}}
{{"<!-- /Contact Section -->" | safeHTML}}
<section id="contact" class="section bg-two">
<div class="container-fluid">
<div class="container py-5"> <div class="container py-5">
<div class="title-container row mx-0"> {{"<!-- Title -->" | safeHTML}}
<div class="title col px-0 text-center text-body"> <div class="col-lg-12">
<h2>Contact Me</h2> <div class="title text-center wow fadeIn" data-wow-duration="500ms">
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
<div class="border-biotech"></div>
</div> </div>
</div> </div>
{{"<!-- /Title -->" | safeHTML}}
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<form class='contact position-relative' data-has-formspree='true' data-has-netlify='true' id='defaultContact' method='POST' name='defaultContact'> <h3 class="text-center">{{ .content }}</h3>
<form class='contact position-relative' data-has-formspree='true' data-netlify='true' id='defaultContact' method='POST' name='defaultContact'>
<input type='hidden' name='form-name' value='defaultContact' /> <input type='hidden' name='form-name' value='defaultContact' />
<div class="row py-3 should-fade"> <div class="row py-3 should-fade">
<div class="d-flex flex-column col-md-4 justify-content-between"> <div class="d-flex flex-column col-md-4 justify-content-between">
@ -65,7 +76,7 @@
</div> </div>
</div> </div>
<div class="col-lg-12 text-center"> <div class="col-lg-12 text-center">
<div class="captcha-error alert alert-danger d-none" id="captcha-error"> {{/* <div class="captcha-error alert alert-danger d-none" id="captcha-error">
Message could not be send due to captcha not loadable. Please contact us at mail@example.com. Message could not be send due to captcha not loadable. Please contact us at mail@example.com.
</div> </div>
<div class="generic-error alert alert-danger d-none" id="generic-error"> <div class="generic-error alert alert-danger d-none" id="generic-error">
@ -76,7 +87,7 @@
Message can not be send with javascript disabled. Please contact us at mail@example.com. Message can not be send with javascript disabled. Please contact us at mail@example.com.
</div> </div>
</noscript> </noscript>
{{/* <div> <div>
<script src='https://www.google.com/recaptcha/api.js'></script> <script src='https://www.google.com/recaptcha/api.js'></script>
<div class='g-recaptcha' data-sitekey='6LdAvUIUAAAAAHjrjmjtNTcXyKm0WKwefLp-dQv9'></div> <div class='g-recaptcha' data-sitekey='6LdAvUIUAAAAAHjrjmjtNTcXyKm0WKwefLp-dQv9'></div>
<noscript> <noscript>
@ -112,4 +123,6 @@
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{{ end }}
{{ end }}