omegamma/layouts/shortcodes/badgeTable.html

17 lines
480 B
HTML
Raw Normal View History

{{ $langs := slice "en" "fr" }}
{{ $icon := .Get 0 }}
{{ $alt := .Get 1 }}
<div class="columns-container fill-width">
{{ range $langs }}
<div class="col{{ len $langs }} column text-center">
<h3>{{ i18n . }}</h3>
{{ partial "badge.html" (dict "Icon" $icon "Lang" . "Alt" $alt ) }}
<br>
<div class="center fit-content">
<div class="code">&lt;img source="https://ad5001.eu/img/badges/{{ . }}/{{ $icon }}.svg" class="badge"/&gt;</div>
</div>
</div>
{{ end }}
</div>