This commit is contained in:
roberto 2025-12-15 20:15:06 +01:00
parent a8cad0353b
commit 6bcc4e6423

View file

@ -3,7 +3,7 @@
{{ if isset .article.Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .article.Params.images 0))) -}}
{{ $mainimage := resources.Get (index .article.Params.images 0) }}
<a href="{{ .article.Permalink }}"><img class="img-thumbnail img-fluid" style="max-width: 245px" src="{{ $mainimage.RelPermalink }}"></a>
<a href="{{ .article.Permalink }}"><img class="img-thumbnail img-fluid" src="{{ $mainimage.RelPermalink }}"></a>
{{ end }}
{{ end }}
</div>