Skip to content

Commit 791531f

Browse files
Use grid of cards for team gallery (#592)
1 parent a0ed922 commit 791531f

8 files changed

+202
-266
lines changed

Makefile

+14-8
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,28 @@ $(CALENDAR_DIR)/%.ics: calendars/%.yaml $(CALENDAR_DIR)
2525
CALENDAR_SOURCES = $(wildcard calendars/*.yaml)
2626
calendars: $(subst calendars,$(CALENDAR_DIR),$(CALENDAR_SOURCES:.yaml=.ics))
2727

28-
TEAMS_DIR = static/teams
29-
TEAMS = community-managers spec-steering-committee community-leaders emeritus-spec-steering-committee emeritus-community-leaders
28+
TEAMS_DIR = content/about
29+
SPEC_DIR = content/specs/steering-committee
30+
TEAMS = community-managers community-leaders emeritus-community-leaders
31+
SPEC_TEAMS = spec-steering-committee emeritus-spec-steering-committee
3032
TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py
3133

32-
$(TEAMS_DIR):
33-
mkdir -p $(TEAMS_DIR)
34+
$(TEAMS_DIR)/%.toml:
35+
$(TEAMS_QUERY) --org scientific-python --team "$*" > $(TEAMS_DIR)/$*.toml
3436

35-
$(TEAMS_DIR)/%.md: $(TEAMS_DIR)
36-
$(TEAMS_QUERY) --org scientific-python --team "$*" > $(TEAMS_DIR)/$*.html
37+
$(SPEC_DIR)/%.toml:
38+
$(TEAMS_QUERY) --org scientific-python --team "$*" > $(SPEC_DIR)/$*.toml
3739

3840
teams-clean:
3941
for team in $(TEAMS); do \
40-
rm -f $(TEAMS_DIR)/$${team}.html ;\
42+
rm -f $(TEAMS_DIR)/$${team}.toml ;\
43+
done
44+
for team in $(SPEC_TEAMS); do \
45+
rm -f $(SPEC_DIR)/$${team}.toml ;\
4146
done
4247

43-
teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.md,$(TEAMS)) ## generates team gallery pages
48+
# generates team gallery pages
49+
teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.toml,$(TEAMS)) $(patsubst %,$(SPEC_DIR)/%.toml,$(SPEC_TEAMS))
4450

4551
core-project-json: content/specs/core-projects/core-projects.json
4652

content/about/_index.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,17 @@ Read about the [grants]({{< relref "/grants" >}}) that fund the work we do.
8282
The following people are involved with leading the overall project.
8383
For more information, see our [governance and decision making process]({{% relref "/about/governance" %}}).
8484

85-
{{< include-html "static/teams/community-managers.html" >}}
86-
{{< include-html "static/teams/community-leaders.html" >}}
87-
{{< include-html "static/teams/emeritus-community-leaders.html" >}}
85+
### Community Managers
86+
87+
{{< grid1 file="community-managers.toml" columns="2 3 4 5" />}}
88+
89+
### Community Leaders
90+
91+
{{< grid1 file="community-leaders.toml" columns="2 3 4 5" />}}
92+
93+
### Emeritus Community Leaders
94+
95+
{{< grid1 file="emeritus-community-leaders.toml" columns="2 3 4 5" />}}
8896

8997
### Other Teams
9098

content/about/community-leaders.toml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[[item]]
2+
type = 'card'
3+
classcard = 'text-center'
4+
header = 'Brigitta Sipőcz'
5+
body = '''{{< image >}}
6+
src = 'https://avatars.githubusercontent.com/u/6788290?u=d9a388224b87d55106cb3e6199d02ebc1d8e0553&v=4"'
7+
alt = 'Avatar of Brigitta Sipőcz'
8+
{{< /image >}}'''
9+
link = 'https://github.com/bsipocz'
10+
11+
[[item]]
12+
type = 'card'
13+
classcard = 'text-center'
14+
header = 'Jarrod Millman'
15+
body = '''{{< image >}}
16+
src = 'https://avatars.githubusercontent.com/u/123428?v=4"'
17+
alt = 'Avatar of Jarrod Millman'
18+
{{< /image >}}'''
19+
link = 'https://github.com/jarrodmillman'
20+
21+
[[item]]
22+
type = 'card'
23+
classcard = 'text-center'
24+
header = 'Juanita Gomez'
25+
body = '''{{< image >}}
26+
src = 'https://avatars.githubusercontent.com/u/18587879?u=83f10fabe466ae8e7052c03c5e6e9cde684a4e10&v=4"'
27+
alt = 'Avatar of Juanita Gomez'
28+
{{< /image >}}'''
29+
link = 'https://github.com/juanis2112'
30+
31+
[[item]]
32+
type = 'card'
33+
classcard = 'text-center'
34+
header = 'Stefan van der Walt'
35+
body = '''{{< image >}}
36+
src = 'https://avatars.githubusercontent.com/u/45071?u=c779b5e06448fbc638bc987cdfe305c7f9a7175e&v=4"'
37+
alt = 'Avatar of Stefan van der Walt'
38+
{{< /image >}}'''
39+
link = 'https://github.com/stefanv'
40+
41+
[[item]]
42+
type = 'card'
43+
classcard = 'text-center'
44+
header = 'Pamphile Roy'
45+
body = '''{{< image >}}
46+
src = 'https://avatars.githubusercontent.com/u/23188539?u=64445b52dbf3f75de8006ed4264fdd2afaed97a3&v=4"'
47+
alt = 'Avatar of Pamphile Roy'
48+
{{< /image >}}'''
49+
link = 'https://github.com/tupui'

content/about/community-managers.toml

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
[[item]]
2+
type = 'card'
3+
classcard = 'text-center'
4+
header = 'Brigitta Sipőcz'
5+
body = '''{{< image >}}
6+
src = 'https://avatars.githubusercontent.com/u/6788290?u=d9a388224b87d55106cb3e6199d02ebc1d8e0553&v=4"'
7+
alt = 'Avatar of Brigitta Sipőcz'
8+
{{< /image >}}'''
9+
link = 'https://github.com/bsipocz'
10+
11+
[[item]]
12+
type = 'card'
13+
classcard = 'text-center'
14+
header = 'Sarah Kaiser'
15+
body = '''{{< image >}}
16+
src = 'https://avatars.githubusercontent.com/u/6486256?u=34be26023eb25da1c19a20e525af3da9277b52a2&v=4"'
17+
alt = 'Avatar of Sarah Kaiser'
18+
{{< /image >}}'''
19+
link = 'https://github.com/crazy4pi314'
20+
21+
[[item]]
22+
type = 'card'
23+
classcard = 'text-center'
24+
header = 'Davina Zaman'
25+
body = '''{{< image >}}
26+
src = 'https://avatars.githubusercontent.com/u/5055644?u=6f173c252458b06645be90d69b9a220f08c81e7a&v=4"'
27+
alt = 'Avatar of Davina Zaman'
28+
{{< /image >}}'''
29+
link = 'https://github.com/davzaman'
30+
31+
[[item]]
32+
type = 'card'
33+
classcard = 'text-center'
34+
header = 'Jarrod Millman'
35+
body = '''{{< image >}}
36+
src = 'https://avatars.githubusercontent.com/u/123428?v=4"'
37+
alt = 'Avatar of Jarrod Millman'
38+
{{< /image >}}'''
39+
link = 'https://github.com/jarrodmillman'
40+
41+
[[item]]
42+
type = 'card'
43+
classcard = 'text-center'
44+
header = 'Juanita Gomez'
45+
body = '''{{< image >}}
46+
src = 'https://avatars.githubusercontent.com/u/18587879?u=83f10fabe466ae8e7052c03c5e6e9cde684a4e10&v=4"'
47+
alt = 'Avatar of Juanita Gomez'
48+
{{< /image >}}'''
49+
link = 'https://github.com/juanis2112'
50+
51+
[[item]]
52+
type = 'card'
53+
classcard = 'text-center'
54+
header = 'Kira Evans'
55+
body = '''{{< image >}}
56+
src = 'https://avatars.githubusercontent.com/u/29165011?u=a9cad2941ed8ddec88ea9fc7523ff70433fce7e6&v=4"'
57+
alt = 'Avatar of Kira Evans'
58+
{{< /image >}}'''
59+
link = 'https://github.com/kne42'
60+
61+
[[item]]
62+
type = 'card'
63+
classcard = 'text-center'
64+
header = 'Melissa Weber Mendonça'
65+
body = '''{{< image >}}
66+
src = 'https://avatars.githubusercontent.com/u/3949932?u=aacac68df60d2cf64c17c7e5aa17adf8b738aa7b&v=4"'
67+
alt = 'Avatar of Melissa Weber Mendonça'
68+
{{< /image >}}'''
69+
link = 'https://github.com/melissawm'
70+
71+
[[item]]
72+
type = 'card'
73+
classcard = 'text-center'
74+
header = 'Marianne Corvellec'
75+
body = '''{{< image >}}
76+
src = 'https://avatars.githubusercontent.com/u/2227806?u=5320031216d435cd2bb0259a116a5623108c9b26&v=4"'
77+
alt = 'Avatar of Marianne Corvellec'
78+
{{< /image >}}'''
79+
link = 'https://github.com/mkcor'
80+
81+
[[item]]
82+
type = 'card'
83+
classcard = 'text-center'
84+
header = 'Mridul Seth'
85+
body = '''{{< image >}}
86+
src = 'https://avatars.githubusercontent.com/u/5363860?u=ce5c6e9388d2fd153ebf8b0bb521c928b0813608&v=4"'
87+
alt = 'Avatar of Mridul Seth'
88+
{{< /image >}}'''
89+
link = 'https://github.com/MridulS'
90+
91+
[[item]]
92+
type = 'card'
93+
classcard = 'text-center'
94+
header = 'Ross Barnowski'
95+
body = '''{{< image >}}
96+
src = 'https://avatars.githubusercontent.com/u/1268991?u=974707b96081a9705f3a239c0773320f353ee02f&v=4"'
97+
alt = 'Avatar of Ross Barnowski'
98+
{{< /image >}}'''
99+
link = 'https://github.com/rossbar'
100+
101+
[[item]]
102+
type = 'card'
103+
classcard = 'text-center'
104+
header = 'Stefan van der Walt'
105+
body = '''{{< image >}}
106+
src = 'https://avatars.githubusercontent.com/u/45071?u=c779b5e06448fbc638bc987cdfe305c7f9a7175e&v=4"'
107+
alt = 'Avatar of Stefan van der Walt'
108+
{{< /image >}}'''
109+
link = 'https://github.com/stefanv'
110+
111+
[[item]]
112+
type = 'card'
113+
classcard = 'text-center'
114+
header = 'Pamphile Roy'
115+
body = '''{{< image >}}
116+
src = 'https://avatars.githubusercontent.com/u/23188539?u=64445b52dbf3f75de8006ed4264fdd2afaed97a3&v=4"'
117+
alt = 'Avatar of Pamphile Roy'
118+
{{< /image >}}'''
119+
link = 'https://github.com/tupui'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[item]]
2+
type = 'card'
3+
classcard = 'text-center'
4+
header = 'Melissa Weber Mendonça'
5+
body = '''{{< image >}}
6+
src = 'https://avatars.githubusercontent.com/u/3949932?u=aacac68df60d2cf64c17c7e5aa17adf8b738aa7b&v=4"'
7+
alt = 'Avatar of Melissa Weber Mendonça'
8+
{{< /image >}}'''
9+
link = 'https://github.com/melissawm'

static/teams/community-leaders.html

-72
This file was deleted.

0 commit comments

Comments
 (0)