feat: Suppression des contenus vide

This commit is contained in:
Simon 2023-02-22 10:46:24 +01:00
parent 412fb2f6b8
commit c4819fcc34
2 changed files with 4 additions and 0 deletions

View File

@ -7,9 +7,11 @@
<div class="cards">
{{ block "list" . }}
{{ range sort .Pages "Permalink" }}
{{ if .Params.bureau }}
<a href="{{ .Permalink }}" class="card {{ if isset .Params "theme" }}{{ .Params.theme }}{{ end }}">
<h2>{{ .RenderString .Title }}</h2>
</a>
{{ end }}
{{ end }}
{{ end }}
</div>

View File

@ -7,6 +7,7 @@
</div>
{{ end }}
<br>
{{ if or .Params.mail .Params.telephone .Params.site .Params.facebook }}
<div class="container md">
<h2>Liens :</h2>
<ul>
@ -16,6 +17,7 @@
{{ if .Params.facebook }}<li><a href="{{ .Params.facebook }}">Facebook</a></li>{{ end }}
</ul>
</div>
{{ end }}
{{ if isset .Params "bureau" }}
<br>
<div class="container md">