Add badge logos and encode Danish badges as YAML #56

Merged
benjaoming merged 9 commits from benjaoming/website:badge-definitions into new 2023-01-23 12:11:33 +00:00
3 changed files with 35 additions and 29 deletions
Showing only changes of commit 44d27d1b5a - Show all commits

View file

@ -4,36 +4,11 @@ other = "Home"
[generated_date] [generated_date]
other = "Generateret med Hugo d. {{ . }}" other = "Generateret med Hugo d. {{ . }}"
[services_status] [badges_headline]
other = "Tjeneste Status" other = "Badges"
[service_badges_status_positive] [status_headline]
other = "Positiv" other = "Status"
[service_badges_status_negative]
other = "Negativ"
[service_badges_status_partial]
other = "Delvis"
[service_badge_stability]
other = "Stabilitet"
[service_badge_connection_security]
other = "Sikker forbindelse"
[service_badge_connection_anonymous]
other = "Anonym adgang"
[service_badge_storage_encrypted]
other = "Krypteret opbevaring af data"
[service_badge_zero_knowledge]
other = "Zero knowledge"
[service_badge_storage_backup]
other = "Backup"
[service_badge_logging]
other = "Logning"
[tagline] [tagline]
other = "<u>vores</u> data i <u>vores</u> hænder" other = "<u>vores</u> data i <u>vores</u> hænder"

View file

@ -0,0 +1,26 @@
<h2>{{ i18n "badges_headline" }}</h2>
<dl class="dl-badges">
{{ range $badge_key, $badge := $.Site.Data.badges.da.badges.badges }}
<dt>{{ title .name }}</dt>
<dd>{{ markdownify .description }}</dd>
{{ end }}
</dl>
<h2>{{ i18n "status_headline" }}</h2>
<dl class="dl-status">
{{ range $.Site.Data.badges.da.status.status }}
<dt>{{ title .name }}</dt>
<dd>{{ markdownify .description }}</dd>
{{ end }}
</dl>

View file

@ -13,5 +13,10 @@
</dd> </dd>
{{ end }} {{ end }}
</dl>
{{ partial "badges.html" . }}
{{- end -}} {{- end -}}