{{/* Fetch a new badge from assets. TODO: Convertion from the -text version when hugo implements it.*/}} {{ $scratch := newScratch }} {{ $scratch.Set "badge" "/img/badges/" }} {{ $scratch.Add "badge" .Lang }} {{ $scratch.Add "badge" "/" }} {{ $scratch.Add "badge" .Icon }} {{ $scratch.Add "badge" ".svg" }} {{ $badgeimg := resources.Get ($scratch.Get "badge") }} {{ i18n .Alt }}