2021-10-16 19:35:17 +00:00
|
|
|
{{/* 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") }}
|
|
|
|
|
|
|
|
<img src="{{ $badgeimg.Permalink }}" alt="{{ i18n .Alt }}" class="badge center" loading=lazy/>
|
2021-08-03 12:59:16 +00:00
|
|
|
|