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