{{ $config := cond (eq $.Site.Language.Lang "en") "config" (printf "config.%s" $.Site.Language.Lang) }} {{ $data := index $.Site.Data $config }}
{{ range $data.links }} {{ if strings.Contains .link "twitter.com" }} {{ $twitter_handle := index (split .link "/") (sub (len (split .link "/")) 1) }} {{ end }} {{ end }}