cremeaux/layouts/associations/single.html

51 lines
1.8 KiB
HTML
Raw Normal View History

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>
2023-02-22 10:46:24 +01:00
{{ if or .Params.mail .Params.telephone .Params.site .Params.facebook }}
2022-12-02 08:54:45 +01:00
<div class="container md">
<h2>Liens :</h2>
<ul>
{{ 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 }}
{{ 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>
2023-02-22 10:46:24 +01:00
{{ 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>
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>
{{ 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 }}