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

{{- $link.title -}}

{{ with $link.description }} {{ . }} {{ else }} {{ $link.website }} {{ end }}
{{- $image := partial "helper/image" (dict "Image" $link.image "Resources" $.Resources) -}} {{- with $image -}}
{{ . }}
{{ end }}
{{ end }}