Skip to content

Commit 4d12d57

Browse files
committed
Add SPEC tags rendering
1 parent ffde6ac commit 4d12d57

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

assets/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ table.spec__table thead {
1616
width: 20rem;
1717
}
1818

19+
.spec__label {
20+
border-radius: 10px;
21+
background: var(--pst-color-info-bg);
22+
color: var(--pst-color-info);
23+
padding-left: 0.5rem;
24+
padding-right: 0.5rem;
25+
padding-top: 0.25rem;
26+
padding-bottom: 0.25rem;
27+
}
28+
1929
.spec__status a {
2030
font-weight: normal;
2131
text-decoration: none;

layouts/partials/specs/spec_list.html

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<tr>
44
<td>Recommendations</td>
55
<td title="The following projects support these recommendations">
6-
Endorsed By
6+
Endorsed By
7+
</td>
8+
<td>
9+
Tags
710
</td>
811
</tr>
912
</thead>
@@ -22,14 +25,19 @@
2225
{{- range $idx, $el := $endorsed_by }}
2326
{{ $project_page := $.GetPage (printf "core-projects/%s" $el) }}
2427
{{ $url := $project_page.RelPermalink }}
25-
<a href="{{ $url }}">
26-
<img title="{{ $project_page.Title }}" src="{{ $project_page.Params.avatar }}" class="icon"/>
27-
</a>
28-
{{ end }}
28+
<a href="{{ $url }}">
29+
<img title="{{ $project_page.Title }}" src="{{ $project_page.Params.avatar }}" class="icon"/>
30+
</a>
31+
{{ end }}
2932
{{ else }}
30-
DRAFT
33+
DRAFT
3134
{{ end -}}
3235
</td>
36+
<td class="spec__tags">
37+
{{ range .Params.tags }}
38+
<span class="spec__label"> {{ . }}</span>
39+
{{ end }}
40+
</td>
3341
</tr>
3442
{{ end }}
3543
{{- end }}

0 commit comments

Comments
 (0)