omegamma/layouts/shortcodes/badgeTable.html

35 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2021-12-30 22:58:11 +00:00
<!--
Omegamma - Hugo theme for ad5001.eu and related websites
Copyright (C) 2021-2022 Ad5001 <mail@ad5001.eu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{{ $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">
<p class="h3">{{ i18n . }}</p>
{{ partial "badge.html" (dict "Icon" $icon "Lang" . "Alt" $alt ) }}
<br>
<div class="center fit-content">
2021-08-12 22:20:34 +00:00
<div class="code">&lt;img source="https://ad5001.eu/img/badges/{{ . }}/{{ $icon }}.svg" alt="{{ i18n $alt }}" class="badge"/&gt;</div>
</div>
</div>
{{ end }}
</div>