{{ range $link := .Params.links }}

{{- $link.title -}}

{{ with $link.description }} {{ . }} {{ else }} {{ $link.website }} {{ end }}
{{- $image := partial "helper/image" (dict "Image" $link.image "Resources" $.Resources "Context" .) -}} {{- with $image -}}
{{ partial "helper/thumbnail-image" (dict "Resource" .Resource "Width" 60 "Height" 60 "Resize" $.Site.Params.ImageProcessing.Thumbnail.Enabled "Attributes" (dict "src" $image.Permalink "alt" $link.title "loading" "lazy" "width" .Width "height" .Height ) ) }}
{{ end }}
{{ end }}