Skip to content

Commit 9cefdc9

Browse files
authored
Merge pull request #13 from NeurodataWithoutBorders/teams-layout
2 parents eb89cbc + 8e6faad commit 9cefdc9

File tree

1 file changed

+59
-63
lines changed

1 file changed

+59
-63
lines changed

layouts/team/list.html

Lines changed: 59 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -34,42 +34,39 @@ <h3 class="inter-700 text-40 dark-900">{{ .title | markdownify }}</h3>
3434
{{ end }}
3535
</ol>
3636
{{ end }}
37-
</div>
38-
</section>
39-
{{ end }}
40-
{{/* End Executive Board Section */}}
41-
42-
{{/* Current Team Section */}}
43-
{{ with .Params.current_team_section }}
44-
{{ if .enable }}
45-
<section class="section bg-dark-100 pt-0">
46-
<div class="container-lg">
47-
<h3 class="inter-700 dark-900 text-40 pb-5">Current Membership of the Executive Board</h3>
48-
<div class="row g-2 g-md-4" id="team-members">
49-
{{ range $index, $element := .team_members }}
50-
<div class="col-6 col-sm-4 col-md-3 team-member {{ if gt $index 7 }}d-none{{ end }}" data-index="{{ $index }}">
51-
<div class="h-100 bg-white rounded-3 p-md-4 p-2 shadow-sm pb-md-3">
52-
<img src="{{ $element.image }}" alt="" class="img-fluid rounded-3">
53-
<h5 class="inter-700 text-20 dark-900 pt-4">{{ $element.name | markdownify }}</h5>
37+
{{/* Current Team Section */}}
38+
{{ with $.Params.current_team_section }}
39+
{{ if .enable }}
40+
<div class="container-lg pt-5">
41+
<h4 class="inter-600 dark-900 text-32 pb-5">Current Membership of the Executive Board</h4>
42+
<div class="row g-2 g-md-4" id="team-members">
43+
{{ range $index, $element := .team_members }}
44+
<div class="col-6 col-sm-4 col-md-3 team-member {{ if gt $index 7 }}d-none{{ end }}" data-index="{{ $index }}">
45+
<div class="h-100 bg-white rounded-3 p-md-4 p-2 shadow-sm pb-md-3">
46+
<img src="{{ $element.image }}" alt="" class="img-fluid rounded-3">
47+
<h5 class="inter-700 text-20 dark-900 pt-4">{{ $element.name | markdownify }}</h5>
48+
{{ if $element.post }}<p class="inter-400 text-14 dark-900">{{ $element.post | markdownify }}</p>{{ end }}
49+
</div>
50+
</div>
51+
{{ end }}
52+
</div>
53+
{{ if gt (len .team_members) 8 }}
54+
<div class="d-flex justify-content-center align-items-center pt-4 flex-column flex-sm-row gap-2 mt-5">
55+
<a href="javascript:void(0);" id="show-more" class="btn btn-lg border shadow-sm bg-white dark-900 inter-500 text-16">
56+
<span>Show More</span>
57+
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20">
58+
</a>
59+
<a href="javascript:void(0);" id="show-less" class="btn btn-lg border shadow-sm bg-white dark-900 inter-500 text-16 d-none">
60+
<span>Show Less</span>
61+
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20" class="rotatedIcon">
62+
</a>
63+
</div>
64+
{{ end }}
5465
</div>
55-
</div>
66+
{{ end }}
5667
{{ end }}
5768
</div>
58-
{{ if gt (len .team_members) 8 }}
59-
<div class="d-flex justify-content-center align-items-center pt-4 flex-column flex-sm-row gap-2 mt-5">
60-
<a href="javascript:void(0);" id="show-more" class="btn btn-lg border shadow-sm bg-white dark-900 inter-500 text-16">
61-
<span>Show More</span>
62-
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20">
63-
</a>
64-
<a href="javascript:void(0);" id="show-less" class="btn btn-lg border shadow-sm bg-white dark-900 inter-500 text-16 d-none">
65-
<span>Show Less</span>
66-
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20" class="rotatedIcon">
67-
</a>
68-
</div>
69-
{{ end }}
70-
</div>
71-
</section>
72-
{{ end }}
69+
</section>
7370
{{ end }}
7471
{{/* End Current Team Section */}}
7572

@@ -109,42 +106,41 @@ <h3 class="inter-700 text-40 dark-900">{{ .title | markdownify }}</h3>
109106
{{ end }}
110107
</ol>
111108
</div>
112-
</section>
113-
{{ end }}
114-
{{ end }}
115-
{{/* End Technical Board Section */}}
116109

117-
{{/* Current Members of Technical Board Section */}}
118-
{{ with .Params.technical_team_section }}
119-
{{ if .enable }}
120-
<section class="section bg-dark-100">
121-
<div class="container-lg">
122-
<h3 class="inter-700 dark-900 text-40 pb-5">Current Membership of the Technical Advisory Board</h3>
123-
<div class="row g-2 g-md-4" id="team-members-tech">
124-
{{ range $i, $p := .team_members }}
125-
<div class="col-12 col-sm-4 col-md-3 team-member-tech {{ if gt $i 7 }}d-none{{ end }}" data-index="{{ $i }}">
126-
<div class="h-100 bg-white rounded-3 p-2 p-md-4 shadow-sm pb-md-3">
127-
<img src="{{ $p.image }}" alt="" class="img-fluid rounded-3">
128-
<h5 class="inter-700 text-20 dark-900 pt-4">{{ $p.name | markdownify }}</h5>
110+
{{/* Current Members of Technical Board Section */}}
111+
{{ with $.Params.technical_team_section }}
112+
{{ if .enable }}
113+
<div class="container-lg pt-5">
114+
<h4 class="inter-600 dark-900 text-32 pb-5">Current Membership of the Technical Advisory Board</h4>
115+
<div class="row g-2 g-md-4" id="team-members-tech">
116+
{{ range $i, $p := .team_members }}
117+
<div class="col-12 col-sm-4 col-md-3 team-member-tech {{ if gt $i 7 }}d-none{{ end }}" data-index="{{ $i }}">
118+
<div class="h-100 bg-white rounded-3 p-2 p-md-4 shadow-sm pb-md-3">
119+
<img src="{{ $p.image }}" alt="" class="img-fluid rounded-3">
120+
<h5 class="inter-700 text-20 dark-900 pt-4">{{ $p.name | markdownify }}</h5>
121+
{{ if $p.post }}<p class="inter-400 text-14 dark-900">{{ $p.post | markdownify }}</p>{{ end }}
122+
</div>
129123
</div>
124+
{{ end }}
125+
</div>
126+
{{ if gt (len .team_members) 8 }}
127+
<div class="d-flex justify-content-center align-items-center pt-4 flex-column flex-sm-row gap-2">
128+
<a href="javascript:void(0);" id="show-more-tech" class="btn btn-lg shadow-sm bg-white dark-900 inter-500 text-16">
129+
<span>Show More</span>
130+
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20">
131+
</a>
132+
<a href="javascript:void(0);" id="show-less-tech" class="btn btn-lg shadow-sm bg-white dark-900 inter-500 text-16 d-none">
133+
<span>Show Less</span>
134+
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20" class="rotatedIcon">
135+
</a>
130136
</div>
131137
{{ end }}
132138
</div>
133-
{{ if gt (len .team_members) 8 }}
134-
<div class="d-flex justify-content-center align-items-center pt-4 flex-column flex-sm-row gap-2">
135-
<a href="javascript:void(0);" id="show-more-tech" class="btn btn-lg shadow-sm bg-white dark-900 inter-500 text-16">
136-
<span>Show More</span>
137-
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20">
138-
</a>
139-
<a href="javascript:void(0);" id="show-less-tech" class="btn btn-lg shadow-sm bg-white dark-900 inter-500 text-16 d-none">
140-
<span>Show Less</span>
141-
<img src="/images/essentials/d-down-arrow.png" alt="" width="20" height="20" class="rotatedIcon">
142-
</a>
143-
</div>
144139
{{ end }}
140+
{{ end }}
145141
</div>
146-
</section>
147-
{{ end }}
142+
</section>
143+
{{ end }}
148144
{{ end }}
149145
{{/* End Current Members of Technical Board Section */}}
150146

@@ -227,4 +223,4 @@ <h3 class="inter-700 text-40 dark-900">{{ .title | markdownify }}</h3>
227223
{{ end }}
228224
{{ end }}
229225
{{/* End Dev Community Section */}}
230-
{{ end }}
226+
{{ end }}

0 commit comments

Comments
 (0)