cremeaux/layouts/associations/single.html

49 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>
<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>Site WEB : <a href="{{ .Params.site }}">{{ .Params.site }}</a></li>{{ end }}
2022-12-02 08:54:45 +01:00
{{ 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>
{{ 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 }}