Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ table.spec__table thead {
width: 20rem;
}

.spec__label {
border-radius: 10px;
background: var(--pst-color-info-bg);
color: var(--pst-color-info);
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}

.spec__status a {
font-weight: normal;
text-decoration: none;
Expand Down
20 changes: 14 additions & 6 deletions layouts/partials/specs/spec_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<tr>
<td>Recommendations</td>
<td title="The following projects support these recommendations">
Endorsed By
Endorsed By
</td>
<td>
Tags
</td>
</tr>
</thead>
Expand All @@ -22,14 +25,19 @@
{{- range $idx, $el := $endorsed_by }}
{{ $project_page := $.GetPage (printf "core-projects/%s" $el) }}
{{ $url := $project_page.RelPermalink }}
<a href="{{ $url }}">
<img title="{{ $project_page.Title }}" src="{{ $project_page.Params.avatar }}" class="icon"/>
</a>
{{ end }}
<a href="{{ $url }}">
<img title="{{ $project_page.Title }}" src="{{ $project_page.Params.avatar }}" class="icon"/>
</a>
{{ end }}
{{ else }}
DRAFT
DRAFT
{{ end -}}
</td>
<td class="spec__tags">
{{ range .Params.tags }}
<span class="spec__label"> {{ . }}</span>
{{ end }}
</td>
</tr>
{{ end }}
{{- end }}
Expand Down