aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorVeikka Kähkönen <insiding@gmail.com>2017-11-27 21:52:51 +0200
committerVeikka Kähkönen <insiding@gmail.com>2017-11-27 22:04:19 +0200
commit905a6d30a5c87993394da0050b7357358191c40b (patch)
treebd759c368773587b2872ff3e4d7cfacf31189c30 /_layouts
parentc6b82e716423636245b86d9da269efbf32a9c766 (diff)
Add automatic placeholder image to people_generic layout
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/people_generic.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/_layouts/people_generic.html b/_layouts/people_generic.html
index 86e01bc..108828a 100644
--- a/_layouts/people_generic.html
+++ b/_layouts/people_generic.html
@@ -20,7 +20,12 @@ layout: page
<div class="section group">
{% endif %}
<div class="contact col span_1_of_2">
- <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ site.url | append: site.baseurl }}/{{ member.picture }}" alt="">
+ {% if member.picture %}
+ {% assign picture_path = member.picture %}
+ {% else %}
+ {% assign picture_path = page.placeholder_img %}
+ {% endif %}
+ <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ site.url | append: site.baseurl }}/{{ picture_path }}" alt="">
<h4 class="contact__person_name contact__person_name--generic">{{ member.name }}</h4>
{% if member.email %}
<div class="contact__section">