SiteWebAstrolabe/src/members-contact.njk

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-03-18 15:13:23 +01:00
---
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>
2024-03-20 13:08:51 +01:00
<div class="member__bio member-contact">
{% if memberData.emailSlug %}
{% set contactMember = memberData.emailSlug %}
{% else %}
{% set contactMember = member.fileSlug | replace("-",".") %}
{% endif %}
{% set removeWave = true %}
2024-03-18 15:13:23 +01:00
{% include "partials/components/contact-form.njk" %}
</div>
</div>
</article>
<a class="return-link" href="/equipe">Voir tous les membres</a>
</section>
</main>
{% endblock %}