{{ $imageName := (index .Params 0) }}
{{ $linkText := (index .Params 1) }}

{{ $imageDict := partial "getScaledImage.html" (dict "imageName" $imageName) }}
{{ $image := $imageDict.originalImage }}

<a href={{ $image.Permalink }} target="_blank">
	{{ $linkText }}
</a>
