Skip to content

Commit 57c4874

Browse files
committed
Add a transparent placeholder image for people.
This solves the 404 we're getting when we request non-existent pictures.
1 parent cf37de1 commit 57c4874

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

_includes/biocard.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<section class="biocard">
2-
<img
3-
class="biocard-photo"
4-
alt="{{ include.name }}"
5-
width=160
6-
height=160
7-
src="/assets/bios/{{ include.photo }}"
8-
loading="{% if include.loading %}{{ include.loading }}{% else %}lazy{% endif %}" />
2+
{% if include.photo %}
3+
<img
4+
class="biocard-photo"
5+
alt="{{ include.name }}"
6+
width=160
7+
height=160
8+
src="/assets/bios/{{ include.photo }}"
9+
loading="{% if include.loading %}{{ include.loading }}{% else %}lazy{% endif %}" />
10+
{% endif %}
911
<div class="biocard-copy">
1012
<div class="biocard-header">{{ include.name }}</div>
1113
{% if include.affiliation %}

about.html

+3-6
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@
286286

287287
software_steering_council:
288288
- name: Eric Charles
289-
photo:
290-
twitter_handle:
289+
photo: placeholder.png
291290
gh_handle: echarles
292291
subproject: Jupyter Notebook
293292
- name: Frédéric Collonval
@@ -301,8 +300,7 @@
301300
gh_handle: sylvaincorlay
302301
subproject: Voilà
303302
- name: Itay Dafna
304-
photo:
305-
twitter_handle:
303+
photo: placeholder.png
306304
gh_handle: ibdafna
307305
subproject: Jupyter Widgets
308306
- name: Paul Ivanov
@@ -333,8 +331,7 @@
333331
twitter_handle: zrsailer
334332
subproject: Jupyter Server
335333
- name: Rick Wagner
336-
photo:
337-
twitter_handle:
334+
photo: placeholder.png
338335
gh_handle: rpwagner
339336
subproject: Jupyter Security
340337
- name: Carol Willing

assets/bios/placeholder.png

-3.94 KB
Loading

0 commit comments

Comments
 (0)