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
2 changed files with 11 additions and 11 deletions
Showing only changes of commit 0f778e4c0c - Show all commits

View file

@ -204,6 +204,10 @@ aside > footer img:hover {
opacity : 1; opacity : 1;
} }
.badge-icon {
width: 30px;
height: auto;
}
dl.dl-services { dl.dl-services {
display : grid; display : grid;

View file

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