{{- $image := .Page.Resources.GetMatch .Destination -}} {{- if $image -}} {{ .Text }} {{- else -}} {{ .Text }} {{- end -}}