diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-05 16:13:01 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-02-05 16:13:01 +0100 |
| commit | ed3812eeb6daa45a98d8d513a8de49b385c4831c (patch) | |
| tree | b3a6b309e2892997185d6c572a0b7bc0034b5025 /backend/templates/components.html | |
| parent | 26b879bf95d801c337b194b1af4aa07c167729a6 (diff) | |
feat(template): remove image if nothing is set in SEO
Diffstat (limited to 'backend/templates/components.html')
| -rw-r--r-- | backend/templates/components.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html index dff4626..b249706 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -16,7 +16,7 @@ {{ define "data_display" }} <article class="large"> <figure> - <a href="/{{ .URI }}/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a> + <a href="/{{ .URI }}/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a> <figcaption>{{ .Img.Legend }}</figcaption> </figure> <div> @@ -26,15 +26,15 @@ </article> {{ end }} {{ define "section_pagination" }} - <div class="pagination"> - {{ if .Paginate }} - {{ template "pagination" . }} - {{ else }} - {{ if eq (len .Data) .LenMax }} - <a href="/{{ .URI }}/">Voir plus</a> - {{ end }} + <div class="pagination"> + {{ if .Paginate }} + {{ template "pagination" . }} + {{ else }} + {{ if eq (len .Data) .LenMax }} + <a href="/{{ .URI }}/">Voir plus</a> {{ end }} - </div> + {{ end }} + </div> {{ end }} {{ define "section_display--no-first" }} <article class="article__list"> |
