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]
other = "Generateret med Hugo d. {{ . }}"
[services_status]
other = "Tjeneste Status"
[badges_headline]
other = "Badges"
[service_badges_status_positive]
other = "Positiv"
[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"
[status_headline]
other = "Status"
[tagline]
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>
{{ end }}
</dl>
{{ partial "badges.html" . }}
{{- end -}}