11 lines
464 B
HTML
11 lines
464 B
HTML
{{/* 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/>
|
|
|