From 2afe8ce4baa22d0a960b2ea1c7fa7db5440de0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Mon, 18 Mar 2024 15:13:23 +0100 Subject: [PATCH] feat(members/contact): create pages --- src/members-contact.njk | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/members-contact.njk diff --git a/src/members-contact.njk b/src/members-contact.njk new file mode 100644 index 0000000..ce2c2ed --- /dev/null +++ b/src/members-contact.njk @@ -0,0 +1,37 @@ +--- +title: 'Contacter un membre' +pagination: + data: collections.members + size: 1 + alias: member +permalink: '/members/{{ member.fileSlug }}/contact/' +--- + +{% extends 'layouts/base.njk' %} + +{% set memberData = member.data %} +{% set title = ["Écrire à ",memberData.name] | join %} + +{% block content %} +
+
+
+

{{ title }}

+

{{ memberData.position }}

+ {% if memberData.positionInternal %} +

{{ memberData.positionInternal }}

+ {% endif %} +
+
+ photo de {{ memberData.name }} +
+
+ {% set contactMember = member.fileSlug | replace("-",".") %} + {% include "partials/components/contact-form.njk" %} +
+
+
+ Voir tous les membres +
+
+{% endblock %} \ No newline at end of file