Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Get faculty profile from CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lourng committed Feb 16, 2017
1 parent e8c2437 commit 5f33120
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions _layouts/faculty.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@

<!-- <p>Filters and quick search go here!</p>
-->
{% for person in site.data.faculty %}
{% for person in site.data.profiles %}
<div class="person">
<div class="person-photo"><img src="{{ person.photo }}" alt="{{ person.name }}"></div>
<div class="person-photo"><img src="{{ person['Headshot Path'] }}" alt="Photo of {{ person['First Name'] }}"></div>
<div class="person-bio">
<h3>{{ person.name }}</h3>
<h3>{{ person['First Name'] }} {{ person['Last Name'] }}</h3>
<h3><small>{{ person.title }}</small></h3>
<p>{{ person.bio | markdownify }}</p>
<p>{{ person['Bio'] | markdownify }}</p>
<ul class="person-links">
{% if person.room %}<li>
<i class="material-icons">location_city</i> {{ person.building }}{% if person.room %} {{ person.room }}{% endif %}
{% if person['Office'] %}<li>
<i class="material-icons">location_city</i> {{ person['Building '] }}{% if person['Office'] %} {{ person['Office'] }}{% endif %}
</li>{% endif %}
{% if person.email %}<li>
<i class="material-icons">email</i> <a href="mailto:{{ person.email }}">{{ person.email }}</a>
{% if person['Web Email'] %}<li>
<i class="material-icons">email</i> <a href="mailto:{{ person['Web Email'] }}">{{ person['Web Email'] }}</a>
</li>{% endif %}
{% if person.phone %}{% if person.phone != "" %}<li>
<i class="material-icons">phone</i> <a href="tel:{{ person.phone }}">
{% if person.phone.size == 10 %}
+1 ({{ person.phone | slice: 0, 3 }}) {{ person.phone | slice: 3, 3 }}.{{ person.phone | slice: 6, 4 }}
{% if person['Phone'] %}{% if person['Phone'] != "" %}<li>
<i class="material-icons">phone</i> <a href="tel:{{ person['Phone'] }}">
{% if person['Phone'].size == 10 %}
+1 ({{ person['Phone'] | slice: 0, 3 }}) {{ person['Phone'] | slice: 3, 3 }}.{{ person['Phone'] | slice: 6, 4 }}
{% elsif person.phone.size == 11 %}
+1 ({{ person.phone | slice: 1, 3 }}) {{ person.phone | slice: 4, 3 }}.{{ person.phone | slice: 7, 4 }}
+1 ({{ person['Phone'] | slice: 1, 3 }}) {{ person['Phone'] | slice: 4, 3 }}.{{ person['Phone'] | slice: 7, 4 }}
{% else %}
{{ person.phone }}
{{ person['Phone'] }}
{% endif %}
</a>
</li>{% endif %}{% endif %}
{% if person.website %}{% if person.website != "" %}<li>
<i class="material-icons">link</i> <a href="{{ person.website }}" target="_blank">{{ person.website }}</a>
</li>{% endif %}{% endif %}
{% if person['Website'] %}{% if person['Website'] != "Website" %}{% if person['Website'] != "" %}<li>
<i class="material-icons">link</i> <a href="{{ person['Website'] }}" target="_blank">{{ person['Website'] }}</a>
</li>{% endif %}{% endif %}{% endif %}
</ul>
</div>
</div>
Expand Down

0 comments on commit 5f33120

Please sign in to comment.