forked from data.coop/website
Iterate over status and bagde data
This commit is contained in:
parent
c3fd1e99f1
commit
44d27d1b5a
33
i18n/da.toml
33
i18n/da.toml
|
@ -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"
|
||||
|
|
26
themes/datacoop2020/layouts/partials/badges.html
Normal file
26
themes/datacoop2020/layouts/partials/badges.html
Normal 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>
|
||||
|
|
@ -13,5 +13,10 @@
|
|||
</dd>
|
||||
|
||||
{{ end }}
|
||||
</dl>
|
||||
|
||||
{{ partial "badges.html" . }}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue