From 01aafb89a141b12f41183aac0e70a952f477d961 Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 11 Jun 2021 15:59:39 +0200 Subject: [PATCH] feat: Add contact partials --- layouts/partials/contact/adresse.html | 6 ++++++ layouts/partials/contact/instagram.html | 3 +++ layouts/partials/contact/mail.html | 3 +++ layouts/partials/contact/telephone.html | 3 +++ layouts/partials/copyright.html | 1 + layouts/shortcodes/adresse.html | 1 + layouts/shortcodes/instagram.html | 1 + layouts/shortcodes/mail.html | 1 + layouts/shortcodes/telephone.html | 1 + 9 files changed, 20 insertions(+) create mode 100644 layouts/partials/contact/adresse.html create mode 100644 layouts/partials/contact/instagram.html create mode 100644 layouts/partials/contact/mail.html create mode 100644 layouts/partials/contact/telephone.html create mode 100644 layouts/partials/copyright.html create mode 100644 layouts/shortcodes/adresse.html create mode 100644 layouts/shortcodes/instagram.html create mode 100644 layouts/shortcodes/mail.html create mode 100644 layouts/shortcodes/telephone.html diff --git a/layouts/partials/contact/adresse.html b/layouts/partials/contact/adresse.html new file mode 100644 index 0000000..d834450 --- /dev/null +++ b/layouts/partials/contact/adresse.html @@ -0,0 +1,6 @@ +{{- with .Site.Data.contact.adresse -}} +

+ {{ .rue }}
+ {{ .cp }}{{ " " }}{{ .ville }} +

+{{- end -}} diff --git a/layouts/partials/contact/instagram.html b/layouts/partials/contact/instagram.html new file mode 100644 index 0000000..8034bd0 --- /dev/null +++ b/layouts/partials/contact/instagram.html @@ -0,0 +1,3 @@ +{{- with .Site.Data.contact.instagram -}} +@{{ . }} +{{- end -}} diff --git a/layouts/partials/contact/mail.html b/layouts/partials/contact/mail.html new file mode 100644 index 0000000..9c45679 --- /dev/null +++ b/layouts/partials/contact/mail.html @@ -0,0 +1,3 @@ +{{- with .Site.Data.contact.mail -}} +{{ . }} +{{- end -}} diff --git a/layouts/partials/contact/telephone.html b/layouts/partials/contact/telephone.html new file mode 100644 index 0000000..fef8181 --- /dev/null +++ b/layouts/partials/contact/telephone.html @@ -0,0 +1,3 @@ +{{- with .Site.Data.contact.telephone -}} +{{ . }} +{{- end -}} diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html new file mode 100644 index 0000000..9e13590 --- /dev/null +++ b/layouts/partials/copyright.html @@ -0,0 +1 @@ +

© {{ .Site.Title }}{{ " - " }}{{- now.Format "2006" -}}

diff --git a/layouts/shortcodes/adresse.html b/layouts/shortcodes/adresse.html new file mode 100644 index 0000000..c02f691 --- /dev/null +++ b/layouts/shortcodes/adresse.html @@ -0,0 +1 @@ +{{ partial "contact/adresse" . }} diff --git a/layouts/shortcodes/instagram.html b/layouts/shortcodes/instagram.html new file mode 100644 index 0000000..1a0a1b3 --- /dev/null +++ b/layouts/shortcodes/instagram.html @@ -0,0 +1 @@ +{{- partial "contact/instagram" . -}} diff --git a/layouts/shortcodes/mail.html b/layouts/shortcodes/mail.html new file mode 100644 index 0000000..6444fbe --- /dev/null +++ b/layouts/shortcodes/mail.html @@ -0,0 +1 @@ +{{- partial "contact/mail" . -}} diff --git a/layouts/shortcodes/telephone.html b/layouts/shortcodes/telephone.html new file mode 100644 index 0000000..8b944b0 --- /dev/null +++ b/layouts/shortcodes/telephone.html @@ -0,0 +1 @@ +{{- partial "contact/telephone" . -}}