{{- $thumbnailResource := .Resources.GetMatch (index .Params "thumbnail")
                        | default (index (.Resources.ByType "image") 0) -}}
{{- $thumbnail := $thumbnailResource.Fit "600x600" -}}
{{- $thumbnail := $thumbnail.Crop "600x600" -}}
{{- $altText := $thumbnailResource.Params.alt -}}
<li>
    <a href="{{ .RelPermalink }}" title="{{ .Title }}">
        <img src="{{ $thumbnail.RelPermalink }}" {{ with $altText }}alt="{{ . }}"{{ end }}>
    </a>
</li>
