Skip to content

Commit 3b4a9b2

Browse files
committed
Add a partial for the supporter acknowledgements
This partial uses a json file of: name, url, logo, currently uses the five acknowledgements on the front page. This is not included anywhere yet, but it's the first part of breaking up the front page into reusable sections.
1 parent a665c4f commit 3b4a9b2

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

data/supporters.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"name": "National Science Foundation",
4+
"logo": "/img/nsf.jpg",
5+
"url": "https://www.nsf.gov"
6+
},
7+
{
8+
"name": "DataCite",
9+
"logo": "/img/datacite.png",
10+
"url": "https://datacite.org"
11+
},
12+
{
13+
"name": "GitHub",
14+
"logo": "/img/github.png",
15+
"url": "https://github.com"
16+
},
17+
{
18+
"name": "figshare",
19+
"logo": "/img/figshare.png",
20+
"url": "https://figshare.com"
21+
},
22+
{
23+
"name": "Zenodo",
24+
"logo": "/img/zenodo.jpg",
25+
"url": "https://zenodo.org"
26+
}
27+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
<div class="row justify-content-center">
3+
{{ range sort .Site.Data.supporters "name" }}
4+
<div class="card col-3 m-1 pt-3 supporter-card">
5+
<a class="h-100" href="{{ .url }}"><img class="card-img-top" aria-label="Logo of {{ .name }}" src="{{ .logo }}" alt="{{ .name }}"></a>
6+
<div class="card-footer d-none d-md-block text-center">
7+
<p class="lead"><a class="fw-bold w-100" href="{{ .url }}">{{ .name }}</a></p>
8+
</div>
9+
</div>
10+
{{ end }}</div>
11+

themes/CodeMeta-Pyramids/static/css/codemeta.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,25 @@ div.highlight {
101101
}
102102
}
103103

104+
/*!
105+
* Card theming
106+
*/
107+
108+
.card {
109+
background-color: var(--bs-dark-bg-subtle);
110+
}
111+
112+
[data-bs-theme=dark] .card {
113+
background-color: var(--bs-border-color) !important;
114+
color: var(--bs-body-color);
115+
}
116+
117+
.supporter-card a {
118+
display:flex;
119+
flex-direction:column;
120+
justify-content:center;
121+
}
122+
104123
/*!
105124
* ToC theming
106125
*/

0 commit comments

Comments
 (0)