cremeaux/layouts/associations/single.html

65 lines
2.2 KiB
HTML
Raw Normal View History

2021-09-09 00:10:40 +02:00
{{ define "main" }}
2023-06-05 16:43:45 +02:00
<div class="container associations">
2022-12-02 08:54:45 +01:00
<h1>{{ .RenderString .Title }} </h1>
2022-11-11 14:43:55 +01:00
<div class="container md">
{{ .Content }}
</div>
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 }}
{{ if isset .Params "actualites" }}
<div class="container md">
<aside>
<hr>
<h2>
Les évènements de l'association
</h2>
{{ range .Params.actualites }}
{{ with site.GetPage . }}
{{ .Scratch.Set "big" false }}
{{ partial "article-preview.html" . }}
{{ end }}
{{ end }}
</aside>
</div>
{{ end }}
2021-09-09 00:10:40 +02:00
</div>
{{ end }}