feat: Add contact partials

This commit is contained in:
Simon 2021-06-11 15:59:39 +02:00
parent ea32c9cb09
commit 01aafb89a1
9 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{{- with .Site.Data.contact.adresse -}}
<p>
{{ .rue }} <br>
{{ .cp }}{{ " " }}{{ .ville }}
</p>
{{- end -}}

View File

@ -0,0 +1,3 @@
{{- with .Site.Data.contact.instagram -}}
<a class="instagram" href="https://www.instagram.com/{{ . }}/">@{{ . }}</a>
{{- end -}}

View File

@ -0,0 +1,3 @@
{{- with .Site.Data.contact.mail -}}
<a class="mail" href="mailto:{{ .}}">{{ . }}</a>
{{- end -}}

View File

@ -0,0 +1,3 @@
{{- with .Site.Data.contact.telephone -}}
<a class="tel" href="tel:{{ . }}">{{ . }}</a>
{{- end -}}

View File

@ -0,0 +1 @@
<p>© {{ .Site.Title }}{{ " - " }}{{- now.Format "2006" -}}</p>

View File

@ -0,0 +1 @@
{{ partial "contact/adresse" . }}

View File

@ -0,0 +1 @@
{{- partial "contact/instagram" . -}}

View File

@ -0,0 +1 @@
{{- partial "contact/mail" . -}}

View File

@ -0,0 +1 @@
{{- partial "contact/telephone" . -}}