2021-09-09 00:10:40 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="container">
|
|
|
|
<h1>{{ .RenderString .Title }}</h1>
|
2022-11-11 14:43:55 +01:00
|
|
|
{{ if ne hugo.Environment "production" }}
|
|
|
|
<div class="container md">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-09-09 00:10:40 +02:00
|
|
|
{{ if isset .Params "bureau" }}
|
|
|
|
<br>
|
|
|
|
<div class="container md">
|
|
|
|
<h2>Le bureau :</h2>
|
|
|
|
<ul>
|
|
|
|
{{ range $membre := .Params.bureau }}
|
|
|
|
<li>
|
|
|
|
{{ $membre.statut }} : {{ if isset $membre "prénom" }}{{ $membre.prénom }}{{ if isset $membre "nom" }} {{ end}}{{ end }}{{ if isset $membre "nom" }}{{ $membre.nom | upper }}{{ end }}
|
|
|
|
{{ if gt (len $membre) 3 }}
|
|
|
|
<ul>
|
|
|
|
{{ if isset $membre "téléphone" }}
|
|
|
|
<li>
|
2022-11-11 14:59:29 +01:00
|
|
|
{{ printf "[%s](tel:%s)" (replace $membre.téléphone " " "") (replace $membre.téléphone " " "") | markdownify }}
|
2021-09-09 00:10:40 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ if isset $membre "mail" }}
|
|
|
|
<li>
|
2022-11-11 14:59:29 +01:00
|
|
|
{{ printf "[%s](mailto:%s)" $membre.mail $membre.mail | markdownify }}
|
2021-09-09 00:10:40 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</li>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|