mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-12-08 13:30:34 +00:00
Marca imagens decorativas como tal
This commit is contained in:
parent
3637528edc
commit
e6a6fb799d
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user