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" }}
{{ end }}
{{ with $cover }}
<img class='news-cover' src="{{ .Permalink }}" />
<img class='news-cover' src="{{ .Permalink }}" alt='' />
{{ end }}
</div>

View File

@ -12,7 +12,7 @@
<div style='display: flex; gap: 2em; margin-top: 2em;'>
<div style='width: 200px;'>
{{ 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 }}
</div>
<div>