Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f206be

Browse files
authored
INFRA: Make community grid native responsive, add social block and template ppl (pyOpenSci#121)
* INFRA: fix and cleanup community grid * INFRA: update font awesome 6 and add social block to grid
1 parent 50e42c6 commit 0f206be

File tree

10 files changed

+222
-136
lines changed

10 files changed

+222
-136
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ author:
140140

141141
# Site Footer
142142
footer:
143+
scripts:
144+
- https://kit.fontawesome.com/2409929a54.js
143145
links:
144146
- label: "Twitter"
145147
icon: "fab fa-fw fa-twitter-square"

_data/advisory.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
github_username: tracykteal
77
github_image_id: 889238 # You can find this by right clicking on the image in your bio, and copying the link. the last part contains a 7 digit number that is your avatar image!
88
title: "Board chair"
9+
board: true
910
# Editors
1011
- name: Karen Cranston
1112
sort: 2
@@ -14,4 +15,5 @@
1415
organization: ""
1516
twitter: kcranstn
1617
github_username: kcranston
17-
github_image_id: 312034
18+
github_image_id: 312034
19+
board: true

_data/contributors.yml

Lines changed: 77 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,57 @@
11
# Staff goes here
22
- name: Leah Wasser
3-
sort: 3
3+
sort: 1
44
bio: 'Executive Director, pyOpenSci'
55
organization: "pyOpenSci"
66
github_username: lwasser
77
github_image_id: 7649194 # You can find this by right clicking on the image in your bio, and copying the link. the last part contains a 7 digit number that is your avatar image!
88
title: "Executive Director"
9+
twitter: leahawasser
10+
mastodon:
11+
orcidid: 0000-0002-8177-6550
12+
website: https://www.leahwasser.com
13+
board: true
914
contributor_type:
1015
- leadership
1116
- current editor
1217
- package-maintainer
1318
packages-editor: ["errdapy", "pandera", "nbless"]
1419
packages-submitted: ["earthpy"]
1520
packages-reviewed: [""]
21+
- name: Tracy Teal
22+
sort: 2
23+
bio: ''
24+
organization: "RStudio"
25+
twitter: tracykteal
26+
github_username: tracykteal
27+
github_image_id: 889238 # You can find this by right clicking on the image in your bio, and copying the link. the last part contains a 7 digit number that is your avatar image!
28+
title: "Board chair"
29+
board: true
30+
- name: Karen Cranston
31+
sort: 3
32+
title: ""
33+
bio: ''
34+
organization: ""
35+
twitter: kcranstn
36+
mastodon:
37+
orcidid:
38+
website:
39+
github_username: kcranston
40+
github_image_id: 312034
41+
board: true
1642
## Advisory team
1743
- name: Leonardo Uieda
1844
advisory: true
1945
bio: ''
2046
organization: "University of Liverpool, JOSS"
2147
github_username:
2248
github_image_id: 290082
49+
twitter:
50+
mastodon:
51+
orcidid:
52+
website:
2353
contributor_type:
24-
- contributor
54+
#- contributor
2555
packages-submitted: [""]
2656
packages-reviewed: [""]
2757
packages-editor: [""]
@@ -32,11 +62,15 @@
3262
organization: "SciPy Latin America, Ibis-framework"
3363
github_username: xmnlab
3464
github_image_id: 5209757
35-
title: "Editor"
36-
editor: true # can say emeritus when they step down?
65+
twitter:
66+
mastodon:
67+
orcidid:
68+
website:
69+
#title: "Alumni Editor"
70+
editor: #true # can say emeritus when they step down?
3771
contributor_type:
3872
- reviewer
39-
- current-editor
73+
- alumni-editor
4074
packages-submitted: [""]
4175
packages-reviewed: ["pandera"]
4276
packages-editor: ["sevivi"]
@@ -45,9 +79,13 @@
4579
bio: ''
4680
organization: "IOOS, Conda Forge"
4781
github_username: ocefpaf
82+
twitter:
83+
mastodon:
84+
orcidid:
85+
website:
4886
github_image_id: 950575
4987
contributor_type:
50-
- contributor
88+
#- contributor
5189
packages-submitted: ["errdapy"]
5290
packages-reviewed: [""]
5391
packages-editor: [""]
@@ -57,8 +95,12 @@
5795
organization: ""
5896
github_username: lheagy
5997
github_image_id: 6361812
98+
twitter:
99+
mastodon:
100+
orcidid:
101+
website:
60102
contributor_type:
61-
- contributor
103+
#- contributor
62104
packages-submitted: [""]
63105
packages-reviewed: [""]
64106
packages-editor: [""]
@@ -71,6 +113,7 @@
71113
twitter: martinfleis
72114
73115
orcidid: 0000-0003-3319-3366
116+
website:
74117
contributor_type:
75118
- reviewer
76119
packages-submitted: [""]
@@ -79,11 +122,15 @@
79122
- name: David Nicholson
80123
sort: 2
81124
title: "Editor in Chief"
82-
editor: true
125+
editorial-board: true
83126
bio: 'Bio goes here just a sentence or two is great!'
84127
organization: ""
85128
github_username: NickleDave
86129
github_image_id: 11934090
130+
twitter:
131+
mastodon:
132+
orcidid:
133+
website:
87134
contributor_type:
88135
- current editor
89136
- contributor
@@ -96,7 +143,11 @@
96143
title: "Editor"
97144
github_username: arianesasso
98145
github_image_id: 3659681
99-
editor: true
146+
editorial-board: true
147+
twitter:
148+
mastodon:
149+
orcidid:
150+
website:
100151
contributor_type:
101152
- package-maintainer
102153
- editor
@@ -109,7 +160,11 @@
109160
organization: "Google Cloud Learning Services"
110161
github_username: jlpalomino
111162
github_image_id: 4017492
112-
editor: true
163+
editorial-board: true
164+
twitter:
165+
mastodon:
166+
orcidid:
167+
website:
113168
contributor_type:
114169
- reviewer
115170
- contributor
@@ -121,10 +176,13 @@
121176
bio: 'Researcher, open source GIS developer and author.'
122177
organization: "AIT Austrian Institute of Technology"
123178
title: "Editor"
124-
editor: true
179+
editorial-board: true
125180
focus-areas: ["gis", "spatial-vector-data"]
126181
github_username: anitagraser
127182
github_image_id: 590385
183+
mastodon:
184+
orcidid:
185+
website:
128186
contributor_type:
129187
- package-maintainer
130188
packages-submitted: ["movingpandas"]
@@ -137,6 +195,10 @@
137195
organization: "Berkeley Bids, Project Jupyter, Binder"
138196
github_username: choldgraf
139197
github_image_id: 1839645
198+
twitter:
199+
mastodon:
200+
orcidid:
201+
website:
140202
contributor_type:
141203
- leadership
142204
- editor
@@ -148,6 +210,10 @@
148210
organization: "Earth Lab, University of Colorado - Boulder"
149211
github_username: mbjoseph
150212
github_image_id: 2664564
213+
twitter:
214+
mastodon:
215+
orcidid:
216+
website:
151217
contributor_type:
152218
- reviewer
153219
packages-submitted: [""]

_includes/head.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<meta charset="utf-8">
2+
3+
{% include seo.html %}
4+
5+
{% unless site.atom_feed.hide %}
6+
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
7+
{% endunless %}
8+
9+
<!-- https://t.co/dKP3o1e -->
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
12+
<script>
13+
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
14+
</script>
15+
16+
<!-- For all browsers -->
17+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
18+
19+
<!-- Remove font awesome as it doesn't support accessibility when loaded this way
20+
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
21+
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css"></noscript>
22+
-->
23+
24+
{% if site.head_scripts %}
25+
{% for script in site.head_scripts %}
26+
<script src="{{ script | relative_url }}"></script>
27+
{% endfor %}
28+
{% endif %}

_includes/head/custom.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
<link rel="preconnect" href="https://fonts.googleapis.com">
44
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
55
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@200;300;400;600&display=swap" rel="stylesheet">
6+
<script src="https://kit.fontawesome.com/2409929a54.js" crossorigin="anonymous"></script>
7+
68
<!-- END custom head content-->

_includes/people-grid.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div class="grid__item">
2+
<article class="archive__item" itemscope="" itemtype="https://schema.org/CreativeWork">
3+
{% if aperson.github_image_id %}
4+
<div class="person_img">
5+
<img src="https://avatars1.githubusercontent.com/u/{{ aperson.github_image_id }}?s=400&v=4" alt="GitHub photo of {{ aperson.name }}">
6+
</div>
7+
{% endif %}
8+
<h4 class="person_name" itemprop="headline">
9+
<a href="https://www.github.com/{{ aperson.github_username }}" rel="permalink"> {{ aperson.name }}
10+
</a>
11+
</h4>
12+
<p class="page__meta">
13+
{% if aperson.title %}
14+
<span>{{ aperson.title }}</span>
15+
{% endif %}
16+
</p>
17+
<p class="contrib_org" itemprop="organization"> {{ aperson.organization }} </p>
18+
<div class="ppl_social">
19+
{% if aperson.twitter %}
20+
<a href="https://www.twitter.com/{{ aperson.twitter }}">
21+
<span class="fa-brands fa-twitter" title="Click to view {{ aperson.title }}'s Twitter account"></span>
22+
</a>
23+
{% endif %}
24+
{% if aperson.github_username %}
25+
<a href="https://www.github.com/{{ aperson.github_username }}"><span class="fa-brands fa-github" title="Click to view {{ aperson.title }}'s GitHub account"></span>
26+
</a>
27+
{% endif %}
28+
{% if aperson.website %}
29+
<a href="{{ aperson.website }}"><span class="fa-solid fa-blog" title="Click to view {{ aperson.title }}'s Website"></span>
30+
</a>
31+
{% endif %}
32+
{% if aperson.orcidid %}
33+
<a href="https://orcid.org/{{ aperson.orcidid }}"><span class="fa-brands fa-orcid" title="Click to view {{ aperson.title }} on fa-orcid"></span>
34+
</a>
35+
{% endif %}
36+
{% if aperson.mastodon %}
37+
<span class="fa-brands fa-mastodon grey" title="{{ aperson.name }} is on Mastadon"></span>
38+
{% endif %}
39+
</div>
40+
</article>
41+
</div>

_pages/about-peer-review.md

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -127,45 +127,15 @@ are, in places, less stringent than those of pyOpenSci.
127127
We value our volunteer editors. Learn more about what editors do and how we select
128128
them here.
129129

130-
{% assign editors = site.data.contributors | where: 'editor', true %}
130+
{% assign editors = site.data.contributors | where: 'editor', true | sort: 'sort' | reverse %}
131131

132-
<div class="grid people">
132+
<div class="entries-grid">
133133
{% for aperson in editors %}
134-
<article class="person__item" itemscope="" itemtype="https://schema.org/CreativeWork">
135-
{% if aperson.github_image_id %}
136-
<div>
137-
<img src="https://avatars1.githubusercontent.com/u/{{ aperson.github_image_id }}?s=400&v=4" alt="image of {{ aperson.name}}" class="contrib_avatar">
138-
</div>
139-
{% endif %}
140-
<div class="about_person">
141-
<h4 class="grid_title" itemprop="headline">
142-
<a href="https://www.github.com/{{ aperson.github_username }}" rel="permalink"> {{ aperson.name }}
143-
</a>
144-
</h4>
145-
<p class="page__meta title">
146-
{% if aperson.title %}
147-
{{ aperson.title }}
148-
{% endif %}
149-
</p>
150-
<p class="page__meta focus-areas">
151-
{% if aperson.focus-areas %}
152-
{% for anArea in aperson.focus-areas %}
153-
{{ anArea }}{% if forloop.last == false %}, {% endif %}
154-
{% endfor %}
155-
{% endif %}
156-
</p>
157-
</div>
158-
<!-- Contribution types -->
159-
<p class="page__meta bio">
160-
<span>
161-
{{ aperson.name}} is also a
162-
{% for atype in aperson.contributor_type %}
163-
{{ atype }}{% if forloop.last == false %}, {% endif %}
164-
{% endfor %} for pyOpenSci.
165-
</span>
166-
</p>
167-
<p class="contrib_org" itemprop="organization"> Affiliation: {{ aperson.organization }} </p>
168-
</article>
134+
{% unless aperson.board %}
135+
{% unless aperson.advisory %}
136+
{% include people-grid.html %}
137+
{% endunless %}
138+
{% endunless %}
169139
{% endfor %}
170140
</div>
171141

0 commit comments

Comments
 (0)