-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpeople.html
executable file
·50 lines (48 loc) · 2.46 KB
/
people.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
layout: page
title: People
permalink: /people/
---
<!--Create an array of possible ranks-->
{% assign ranks = "principal, postdoc, technician, graduate, undergraduate, former, honorary, current-collaborators, previous-collaborators" | split: ', ' %}
<div class="home">
{% for rank in ranks %} <!-- For each rank -->
<div class="posts" style="clear:both; padding-bottom: 0px"> <!-- Start a container for the specific rank -->
{% case rank %} <!-- Determine the propper header -->
{% when 'principal' %}
<h2>Principal Investigator</h2>
{% when 'postdoc' %}
<h2>Postdoctoral Scholars</h2>
{% when 'graduate' %}
<h2>Graduate Students</h2>
{% when 'undergraduate' %}
<h2>Undergraduates</h2>
{% when 'former' %}
<h2>Former Lab Members</h2>
{% when 'honorary' %}
<h2>Honorary Lab Members</h2>
{% when 'current-collaborators' %}
<h2>Current Collaborators</h2>
{% when 'previous-collaborators' %}
<h2>Past Collaborators</h2>
{% endcase %}
{% for post in site.people %} <!-- For each post, the include takes care of figuring out who gets put with which header -->
<!--Use the include to take care of formatting-->
{% include people_blurb.html name=post.name start=post.start-date end=post.end-date image=post.image content=post.content github=post.github google-scholar=post.google-scholar linkedin=post.linkedin twitter=post.twitter bluesky=post.bluesky orcid=post.orcid website=post.website this=rank rank=post.rank %}
{% endfor %}
</div> <!-- End the container for each rank -->
{% endfor %}
<p style="font-size:150%;"><a href="../pictures/index.html">See more photos of the Morrell Lab</a></p>
</div>
<!-- Start Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19694768-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End Google Analytics -->