Skip to content

Commit ebbe61a

Browse files
Use grid partial for page_gallery (#587)
1 parent d4177c0 commit ebbe61a

File tree

7 files changed

+44
-91
lines changed

7 files changed

+44
-91
lines changed

assets/css/custom.css

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,6 @@ table.spec__table thead {
2121
text-decoration: none;
2222
}
2323

24-
.gallery {
25-
display: flex;
26-
flex-wrap: wrap;
27-
}
28-
29-
.gallery .entry {
30-
padding: 1rem;
31-
margin: 0.25rem;
32-
width: 11rem;
33-
text-align: center;
34-
vertical-align: top;
35-
}
36-
37-
.gallery .photo {
38-
display: block;
39-
}
40-
41-
.gallery .photo img {
42-
width: 60px;
43-
border-radius: 50%;
44-
margin-bottom: 0.5rem;
45-
}
46-
47-
.gallery .name {
48-
font-weight: bold;
49-
}
50-
51-
.gallery .project {
52-
display: block;
53-
font-size: 0.8rem;
54-
font-style: italic;
55-
}
56-
5724
.calendar-list .calendar {
5825
padding-bottom: 1rem;
5926
}

content/about/community-leaders.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
[[item]]
22
type = 'card'
33
classcard = 'text-center'
4-
header = 'Brigitta Sipőcz'
54
body = '''{{< image >}}
65
src = 'https://avatars.githubusercontent.com/u/6788290?u=d9a388224b87d55106cb3e6199d02ebc1d8e0553&v=4"'
76
alt = 'Avatar of Brigitta Sipőcz'
8-
{{< /image >}}'''
7+
{{< /image >}}
8+
Brigitta Sipőcz'''
99
link = 'https://github.com/bsipocz'
1010

1111
[[item]]
1212
type = 'card'
1313
classcard = 'text-center'
14-
header = 'Jarrod Millman'
1514
body = '''{{< image >}}
1615
src = 'https://avatars.githubusercontent.com/u/123428?v=4"'
1716
alt = 'Avatar of Jarrod Millman'
18-
{{< /image >}}'''
17+
{{< /image >}}
18+
Jarrod Millman'''
1919
link = 'https://github.com/jarrodmillman'
2020

2121
[[item]]
2222
type = 'card'
2323
classcard = 'text-center'
24-
header = 'Juanita Gomez'
2524
body = '''{{< image >}}
2625
src = 'https://avatars.githubusercontent.com/u/18587879?u=83f10fabe466ae8e7052c03c5e6e9cde684a4e10&v=4"'
2726
alt = 'Avatar of Juanita Gomez'
28-
{{< /image >}}'''
27+
{{< /image >}}
28+
Juanita Gomez'''
2929
link = 'https://github.com/juanis2112'
3030

3131
[[item]]
3232
type = 'card'
3333
classcard = 'text-center'
34-
header = 'Stefan van der Walt'
3534
body = '''{{< image >}}
3635
src = 'https://avatars.githubusercontent.com/u/45071?u=c779b5e06448fbc638bc987cdfe305c7f9a7175e&v=4"'
3736
alt = 'Avatar of Stefan van der Walt'
38-
{{< /image >}}'''
37+
{{< /image >}}
38+
Stefan van der Walt'''
3939
link = 'https://github.com/stefanv'
4040

4141
[[item]]
4242
type = 'card'
4343
classcard = 'text-center'
44-
header = 'Pamphile Roy'
4544
body = '''{{< image >}}
4645
src = 'https://avatars.githubusercontent.com/u/23188539?u=64445b52dbf3f75de8006ed4264fdd2afaed97a3&v=4"'
4746
alt = 'Avatar of Pamphile Roy'
48-
{{< /image >}}'''
47+
{{< /image >}}
48+
Pamphile Roy'''
4949
link = 'https://github.com/tupui'

content/about/community-managers.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,119 @@
11
[[item]]
22
type = 'card'
33
classcard = 'text-center'
4-
header = 'Brigitta Sipőcz'
54
body = '''{{< image >}}
65
src = 'https://avatars.githubusercontent.com/u/6788290?u=d9a388224b87d55106cb3e6199d02ebc1d8e0553&v=4"'
76
alt = 'Avatar of Brigitta Sipőcz'
8-
{{< /image >}}'''
7+
{{< /image >}}
8+
Brigitta Sipőcz'''
99
link = 'https://github.com/bsipocz'
1010

1111
[[item]]
1212
type = 'card'
1313
classcard = 'text-center'
14-
header = 'Sarah Kaiser'
1514
body = '''{{< image >}}
1615
src = 'https://avatars.githubusercontent.com/u/6486256?u=34be26023eb25da1c19a20e525af3da9277b52a2&v=4"'
1716
alt = 'Avatar of Sarah Kaiser'
18-
{{< /image >}}'''
17+
{{< /image >}}
18+
Sarah Kaiser'''
1919
link = 'https://github.com/crazy4pi314'
2020

2121
[[item]]
2222
type = 'card'
2323
classcard = 'text-center'
24-
header = 'Davina Zaman'
2524
body = '''{{< image >}}
2625
src = 'https://avatars.githubusercontent.com/u/5055644?u=6f173c252458b06645be90d69b9a220f08c81e7a&v=4"'
2726
alt = 'Avatar of Davina Zaman'
28-
{{< /image >}}'''
27+
{{< /image >}}
28+
Davina Zaman'''
2929
link = 'https://github.com/davzaman'
3030

3131
[[item]]
3232
type = 'card'
3333
classcard = 'text-center'
34-
header = 'Jarrod Millman'
3534
body = '''{{< image >}}
3635
src = 'https://avatars.githubusercontent.com/u/123428?v=4"'
3736
alt = 'Avatar of Jarrod Millman'
38-
{{< /image >}}'''
37+
{{< /image >}}
38+
Jarrod Millman'''
3939
link = 'https://github.com/jarrodmillman'
4040

4141
[[item]]
4242
type = 'card'
4343
classcard = 'text-center'
44-
header = 'Juanita Gomez'
4544
body = '''{{< image >}}
4645
src = 'https://avatars.githubusercontent.com/u/18587879?u=83f10fabe466ae8e7052c03c5e6e9cde684a4e10&v=4"'
4746
alt = 'Avatar of Juanita Gomez'
48-
{{< /image >}}'''
47+
{{< /image >}}
48+
Juanita Gomez'''
4949
link = 'https://github.com/juanis2112'
5050

5151
[[item]]
5252
type = 'card'
5353
classcard = 'text-center'
54-
header = 'Kira Evans'
5554
body = '''{{< image >}}
5655
src = 'https://avatars.githubusercontent.com/u/29165011?u=a9cad2941ed8ddec88ea9fc7523ff70433fce7e6&v=4"'
5756
alt = 'Avatar of Kira Evans'
58-
{{< /image >}}'''
57+
{{< /image >}}
58+
Kira Evans'''
5959
link = 'https://github.com/kne42'
6060

6161
[[item]]
6262
type = 'card'
6363
classcard = 'text-center'
64-
header = 'Melissa Weber Mendonça'
6564
body = '''{{< image >}}
6665
src = 'https://avatars.githubusercontent.com/u/3949932?u=aacac68df60d2cf64c17c7e5aa17adf8b738aa7b&v=4"'
6766
alt = 'Avatar of Melissa Weber Mendonça'
68-
{{< /image >}}'''
67+
{{< /image >}}
68+
Melissa Weber Mendonça'''
6969
link = 'https://github.com/melissawm'
7070

7171
[[item]]
7272
type = 'card'
7373
classcard = 'text-center'
74-
header = 'Marianne Corvellec'
7574
body = '''{{< image >}}
7675
src = 'https://avatars.githubusercontent.com/u/2227806?u=5320031216d435cd2bb0259a116a5623108c9b26&v=4"'
7776
alt = 'Avatar of Marianne Corvellec'
78-
{{< /image >}}'''
77+
{{< /image >}}
78+
Marianne Corvellec'''
7979
link = 'https://github.com/mkcor'
8080

8181
[[item]]
8282
type = 'card'
8383
classcard = 'text-center'
84-
header = 'Mridul Seth'
8584
body = '''{{< image >}}
8685
src = 'https://avatars.githubusercontent.com/u/5363860?u=ce5c6e9388d2fd153ebf8b0bb521c928b0813608&v=4"'
8786
alt = 'Avatar of Mridul Seth'
88-
{{< /image >}}'''
87+
{{< /image >}}
88+
Mridul Seth'''
8989
link = 'https://github.com/MridulS'
9090

9191
[[item]]
9292
type = 'card'
9393
classcard = 'text-center'
94-
header = 'Ross Barnowski'
9594
body = '''{{< image >}}
9695
src = 'https://avatars.githubusercontent.com/u/1268991?u=974707b96081a9705f3a239c0773320f353ee02f&v=4"'
9796
alt = 'Avatar of Ross Barnowski'
98-
{{< /image >}}'''
97+
{{< /image >}}
98+
Ross Barnowski'''
9999
link = 'https://github.com/rossbar'
100100

101101
[[item]]
102102
type = 'card'
103103
classcard = 'text-center'
104-
header = 'Stefan van der Walt'
105104
body = '''{{< image >}}
106105
src = 'https://avatars.githubusercontent.com/u/45071?u=c779b5e06448fbc638bc987cdfe305c7f9a7175e&v=4"'
107106
alt = 'Avatar of Stefan van der Walt'
108-
{{< /image >}}'''
107+
{{< /image >}}
108+
Stefan van der Walt'''
109109
link = 'https://github.com/stefanv'
110110

111111
[[item]]
112112
type = 'card'
113113
classcard = 'text-center'
114-
header = 'Pamphile Roy'
115114
body = '''{{< image >}}
116115
src = 'https://avatars.githubusercontent.com/u/23188539?u=64445b52dbf3f75de8006ed4264fdd2afaed97a3&v=4"'
117116
alt = 'Avatar of Pamphile Roy'
118-
{{< /image >}}'''
117+
{{< /image >}}
118+
Pamphile Roy'''
119119
link = 'https://github.com/tupui'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[[item]]
22
type = 'card'
33
classcard = 'text-center'
4-
header = 'Melissa Weber Mendonça'
54
body = '''{{< image >}}
65
src = 'https://avatars.githubusercontent.com/u/3949932?u=aacac68df60d2cf64c17c7e5aa17adf8b738aa7b&v=4"'
76
alt = 'Avatar of Melissa Weber Mendonça'
8-
{{< /image >}}'''
7+
{{< /image >}}
8+
Melissa Weber Mendonça'''
99
link = 'https://github.com/melissawm'

layouts/shortcodes/page_gallery.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

layouts/shortcodes/project_grid.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{ $items := slice }}
2+
{{ $section := .Page.GetPage (.Get "files") }}
3+
{{ range (or $section.Pages ($section.Resources.ByType "page")) }}
4+
{{ $body := printf "{{< image >}}\n src = '%s'\n alt = '%s Logo'\n {{< /image >}}\n %s" .Params.avatar .Title .Title }}
5+
{{ $items = $items | append (dict "body" $body "link" .Params.repository "classcard" "text-center" "type" "card") }}
6+
{{ end }}
7+
{{- partial "_elements/grid.html" (merge .Params (dict "items" $items)) -}}

0 commit comments

Comments
 (0)