Mise à jour de la partie contact
This commit is contained in:
parent
5a129e957c
commit
cfcd0405c8
|
@ -12,14 +12,14 @@ contact:
|
||||||
# Contact details
|
# Contact details
|
||||||
contact_list:
|
contact_list:
|
||||||
- icon : ti-mobile # themify icon pack : https://themify.me/themify-icons
|
- 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
|
- 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
|
||||||
contact_form:
|
contact_form:
|
||||||
enable : true
|
enable : false
|
||||||
form_action : "#" #contact form works with https://formspree.io
|
form_action : "#" #contact form works with https://formspree.io
|
||||||
name : "votre nom"
|
name : "votre nom"
|
||||||
email : "Votre email"
|
email : "Votre email"
|
||||||
|
|
|
@ -21,16 +21,14 @@
|
||||||
<h3>{{ .subtitle | markdownify }}</h3>
|
<h3>{{ .subtitle | markdownify }}</h3>
|
||||||
<p> {{ .content | markdownify }} </p>
|
<p> {{ .content | markdownify }} </p>
|
||||||
|
|
||||||
{{ if .contact_form.enable }}
|
|
||||||
<div class="contact-details">
|
<div class="contact-details">
|
||||||
{{ range .contact_list }}
|
{{ range .contact_list }}
|
||||||
<div class="con-info clearfix">
|
<div class="con-info clearfix">
|
||||||
<i class="{{ .icon }}"></i>
|
<i class="{{ .icon }}"></i>
|
||||||
<span>{{ .info }}</span>
|
<span>{{ .info | markdownify }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{"<!-- Contact Form -->" | safeHTML}}
|
{{"<!-- Contact Form -->" | safeHTML}}
|
||||||
|
@ -57,15 +55,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue