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:
parent
3637528edc
commit
e6a6fb799d
@ -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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user