Mise à jour de la partie contact

This commit is contained in:
Simon 2022-09-08 11:36:09 +02:00
parent 5a129e957c
commit cfcd0405c8
2 changed files with 6 additions and 17 deletions

View File

@ -12,17 +12,17 @@ contact:
# Contact details
contact_list:
- icon : ti-mobile # themify icon pack : https://themify.me/themify-icons
info : "Téléphone : 05 55 55 55 55"
info : "Téléphone : **[06 99 99 00 33](tel://+33699990033)**"
- icon : ti-email # themify icon pack : https://themify.me/themify-icons
info : "Email : bonjour@jarnat.fr"
info : "Email : **[bonjour@jarnat.fr](mailto://bonjour@jarnat.fr)**"
# Contact form
contact_form:
enable : true
enable : false
form_action : "#" #contact form works with https://formspree.io
name : "votre nom"
email : "Votre email"
subject : "Matière"
message : "Message"
submit : "Soumettre"
submit : "Soumettre"

View File

@ -21,16 +21,14 @@
<h3>{{ .subtitle | markdownify }}</h3>
<p> {{ .content | markdownify }} </p>
{{ if .contact_form.enable }}
<div class="contact-details">
{{ range .contact_list }}
<div class="con-info clearfix">
<i class="{{ .icon }}"></i>
<span>{{ .info }}</span>
<span>{{ .info | markdownify }}</span>
</div>
{{ end }}
</div>
{{ end }}
</div>
{{"<!-- Contact Form -->" | safeHTML}}
@ -57,19 +55,10 @@
</form>
</div>
{{ end }}
{{ else }}
<div class="contact-details">
{{ range .contact_list }}
<div class="con-info clearfix">
<i class="{{ .icon }}"></i>
<span>{{ .info }}</span>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
</section>
{{"<!-- /contact -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}