2021-09-09 00:10:40 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="container">
|
2022-12-02 08:54:45 +01:00
|
|
|
<h1>{{ .RenderString .Title }} </h1>
|
2022-11-11 14:43:55 +01:00
|
|
|
{{ if ne hugo.Environment "production" }}
|
|
|
|
<div class="container md">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-12-02 08:54:45 +01:00
|
|
|
<br>
|
|
|
|
<div class="container md">
|
|
|
|
<h2>Liens :</h2>
|
|
|
|
<ul>
|
2022-12-02 13:03:00 +01:00
|
|
|
{{ if .Params.mail }}<li>Mail : {{ printf "[%s](mailto:%s)" .Params.mail .Params.mail | markdownify }}</li>{{ end }}
|
|
|
|
{{ if .Params.telephone }}<li>Téléphone : {{ printf "[%s](tel:%s)" (replace .Params.telephone " " "") (replace .Params.telephone " " "") | markdownify }}</li>{{ end }}
|
2022-12-02 13:25:49 +01:00
|
|
|
{{ if .Params.site }}<li><a href="{{ .Params.site }}">Site WEB</a></li>{{ end }}
|
|
|
|
{{ if .Params.facebook }}<li><a href="{{ .Params.facebook }}">Facebook</a></li>{{ end }}
|
2022-12-02 08:54:45 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
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>
|
2022-12-02 08:54:45 +01:00
|
|
|
{{ $membre.denomination }} : {{ if isset $membre "prenom" }}{{ $membre.prenom }}{{ if isset $membre "nom" }} {{ end}}{{ end }}{{ if isset $membre "nom" }}{{ $membre.nom | upper }}{{ end }}
|
2021-09-09 00:10:40 +02:00
|
|
|
{{ if gt (len $membre) 3 }}
|
|
|
|
<ul>
|
2022-12-02 08:54:45 +01:00
|
|
|
{{ if isset $membre "telephone" }}
|
2021-09-09 00:10:40 +02:00
|
|
|
<li>
|
2022-12-02 08:54:45 +01:00
|
|
|
{{ printf "[%s](tel:%s)" (replace $membre.telephone " " "") (replace $membre.telephone " " "") | 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 }}
|