Mise à jour de la partie contact
This commit is contained in:
parent
5a129e957c
commit
cfcd0405c8
|
@ -12,14 +12,14 @@ 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"
|
||||
|
|
|
@ -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,15 +55,6 @@
|
|||
</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>
|
||||
|
|
Loading…
Reference in New Issue