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>
|
|
|
|
{{ if .Params.mail }}<li>Mail : {{ .Params.mail }}</li>{{ end }}
|
|
|
|
{{ if .Params.telephone }}<li>Téléphone : {{ .Params.telephone }}</li>{{ end }}
|
|
|
|
{{ if .Params.site }}<li>Site WEB : {{ .Params.site }}</li>{{ end }}
|
|
|
|
{{ if .Params.facebook }}<li>Facebook : {{ .Params.facebook }}</li>{{ end }}
|
|
|
|
</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 }}
|