{{- $caption := .Inner }} {{ $lastLetter := "Dupa" }} {{ with resources.Get "more/links.yml"}} {{ with . | transform.Unmarshal }} {{ range (sort .links "Title") }} {{ $letter := slicestr .Title 0 1 }} {{ if not (eq $letter $lastLetter) }} {{ end }} {{ $lastLetter = $letter }} {{ end }} {{ end }} {{ end }}