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">
<div class="container-fluid bg-dark">
{{ $data := index site.Data.contact }}
{{ 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="title-container row mx-0">
<div class="title col px-0 text-center text-body">
<h2>Contact Me</h2>
{{"<!-- Title -->" | safeHTML}}
<div class="col-lg-12">
<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>
{{"<!-- /Title -->" | safeHTML}}
<div class="row">
<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' />
<div class="row py-3 should-fade">
<div class="d-flex flex-column col-md-4 justify-content-between">
@ -65,7 +76,7 @@
</div>
</div>
<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.
</div>
<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.
</div>
</noscript>
{{/* <div>
<div>
<script src='https://www.google.com/recaptcha/api.js'></script>
<div class='g-recaptcha' data-sitekey='6LdAvUIUAAAAAHjrjmjtNTcXyKm0WKwefLp-dQv9'></div>
<noscript>
@ -113,3 +124,5 @@
</div>
</div>
</section>
{{ end }}
{{ end }}