Iterate over status and bagde data

This commit is contained in:
Benjamin Bach 2023-01-21 19:44:02 +01:00
parent c3fd1e99f1
commit 44d27d1b5a
Signed by: benjaoming
GPG key ID: 7D49441634585664
3 changed files with 35 additions and 29 deletions

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 -}}