Skip to content

Commit c1a26ee

Browse files
committed
It is possible to add packages with no icons to the main page
Packages names can also be capitalized now as their names will be converted to lowercase to fetch the correct icon files based on the package name.
1 parent 27ac357 commit c1a26ee

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

content/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ description = "Foundational tools for single-cell omics data analysis"
4848
name = "SnapATAC2"
4949
description = "Single-cell ATAC analysis framework"
5050
url = "https://scverse.org/SnapATAC2/"
51+
no_icon = true
5152

5253
[[packages]]
5354
name = "rapids-singlecell"

layouts/partials/main/packages.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-6 py-3">
99
<div class="card border-0 bh-light px-3" id="{{ .name }}-tile">
1010
<div class="package-icon my-4">
11-
<img src="img/icons/{{ .name }}.svg" alt="Logo for {{ .name }}" />
11+
{{ if not .no_icon }}
12+
<img src="img/icons/{{ lower .name }}.svg" alt="Logo for {{ .name }}" />
13+
{{ else }}
14+
<img />
15+
{{ end }}
1216
</div>
1317
<div class="card-body package-text p-2">
1418
<a

0 commit comments

Comments
 (0)