Add contact backend and update readme
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
{{ $form := .Page.Params.contactForm }}
|
||||
{{ $contactFormUrl := default "https://facteur-cl.sobrietech.be/contact.php" (getenv "CONTACT_FORM_URL") }}
|
||||
|
||||
{{ $contactFormUrl := (getenv "CONTACT_FORM_URL") | default "https://facteur-cl.sobrietech.be/contact.php" }}
|
||||
|
||||
<form id="contactForm" class="max-w-lg mx-auto p-6 bg-white rounded shadow" method="POST"
|
||||
action="{{ $form.action | default $contactFormUrl }}" target="_blank">
|
||||
action={{ $contactFormUrl }} target="_blank">
|
||||
<h3 class="text-2xl font-bold mb-4">{{ $form.title }}</h3>
|
||||
{{ range $form.fields }}
|
||||
<div class="mb-4">
|
||||
|
||||
Reference in New Issue
Block a user