7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-25 15:43:17 +00:00

Marca imagens decorativas como tal

This commit is contained in:
Hugo Peixoto 2023-03-31 18:07:20 +01:00
parent 3637528edc
commit e6a6fb799d
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
{{ $cover = resources.Get "images/default-news-cover.png" }} {{ $cover = resources.Get "images/default-news-cover.png" }}
{{ end }} {{ end }}
{{ with $cover }} {{ with $cover }}
<img class='news-cover' src="{{ .Permalink }}" /> <img class='news-cover' src="{{ .Permalink }}" alt='' />
{{ end }} {{ end }}
</div> </div>

View File

@ -12,7 +12,7 @@
<div style='display: flex; gap: 2em; margin-top: 2em;'> <div style='display: flex; gap: 2em; margin-top: 2em;'>
<div style='width: 200px;'> <div style='width: 200px;'>
{{ with (.Resources.ByType "image").GetMatch "*cover*" }} {{ with (.Resources.ByType "image").GetMatch "*cover*" }}
<img class='campaign-cover' src="{{ .Permalink }}" style='max-width: 200px; object-fit: contain;' /> <img class='campaign-cover' src="{{ .Permalink }}" style='max-width: 200px; object-fit: contain;' alt='' />
{{ end }} {{ end }}
</div> </div>
<div> <div>