feat/send-mail-to-member #81
37
src/members-contact.njk
Normal file
37
src/members-contact.njk
Normal file
@ -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 %}
|
||||
<main id="main-content" tabindex="-1">
|
||||
<section class="[ wrapper member ]">
|
||||
<article>
|
||||
<h1>{{ title }}</h1>
|
||||
<p class="position">{{ memberData.position }}</p>
|
||||
{% if memberData.positionInternal %}
|
||||
<p>{{ memberData.positionInternal }}</p>
|
||||
{% endif %}
|
||||
<div class="[ member__wrapper ]">
|
||||
<div class="member__info">
|
||||
<img src="{{ memberData.profile }}" alt="photo de {{ memberData.name }}">
|
||||
</div>
|
||||
<div class="member__bio">
|
||||
{% set contactMember = member.fileSlug | replace("-",".") %}
|
||||
{% include "partials/components/contact-form.njk" %}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<a class="return-link" href="/equipe">Voir tous les membres</a>
|
||||
</section>
|
||||
</main>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user