feat: Suppression des contenus vide
This commit is contained in:
parent
412fb2f6b8
commit
c4819fcc34
|
@ -7,11 +7,13 @@
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{ block "list" . }}
|
{{ block "list" . }}
|
||||||
{{ range sort .Pages "Permalink" }}
|
{{ range sort .Pages "Permalink" }}
|
||||||
|
{{ if .Params.bureau }}
|
||||||
<a href="{{ .Permalink }}" class="card {{ if isset .Params "theme" }}{{ .Params.theme }}{{ end }}">
|
<a href="{{ .Permalink }}" class="card {{ if isset .Params "theme" }}{{ .Params.theme }}{{ end }}">
|
||||||
<h2>{{ .RenderString .Title }}</h2>
|
<h2>{{ .RenderString .Title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="container md">
|
<div class="container md">
|
||||||
<p>Vous ne retrouvez pas votre association ? Une modification, faute, ou un changement de contact, n'hésitez pas à nous écrire à l'adresse {{ "[com@cremeaux.fr](mailto:com@cremeaux.fr)" | markdownify }}.</p>
|
<p>Vous ne retrouvez pas votre association ? Une modification, faute, ou un changement de contact, n'hésitez pas à nous écrire à l'adresse {{ "[com@cremeaux.fr](mailto:com@cremeaux.fr)" | markdownify }}.</p>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<br>
|
<br>
|
||||||
|
{{ if or .Params.mail .Params.telephone .Params.site .Params.facebook }}
|
||||||
<div class="container md">
|
<div class="container md">
|
||||||
<h2>Liens :</h2>
|
<h2>Liens :</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
{{ if .Params.facebook }}<li><a href="{{ .Params.facebook }}">Facebook</a></li>{{ end }}
|
{{ if .Params.facebook }}<li><a href="{{ .Params.facebook }}">Facebook</a></li>{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ if isset .Params "bureau" }}
|
{{ if isset .Params "bureau" }}
|
||||||
<br>
|
<br>
|
||||||
<div class="container md">
|
<div class="container md">
|
||||||
|
|
Loading…
Reference in New Issue