Last active
April 5, 2018 18:32
-
-
Save su-narthur/5f8132e7e2142bf250b4aaa427ec8f9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set staffCollection = su.collection("staff") %} | |
{% set staffMembers = staffCollection.find() %} | |
<div class="staffListing"> | |
{% for staffMember in staffMembers %} | |
<div class="staffMember"> | |
{% if staffMember.photo %} | |
<img style="float: left; margin-right: 1.5rem;" src="{{ staffMember.photo }}" alt="{{ staffMember.name.first }} {{ staffMember.name.last }}" width=150 /> | |
{% endif %} | |
<div style="overflow: hidden;" class="information"> | |
<h2 style="margin-top: 0;">{{ staffMember.name.first }} {{ staffMember.name.last }}</h2> | |
{% if staffMember.position or staffMember.workPhone or staffMember.workEmail %} | |
<p> | |
{% if staffMember.position %} | |
<em>Position:</em> {{ staffMember.position }}<br> | |
{% endif %} | |
{% if staffMember.workPhone %} | |
<em>Phone:</em> <a data-cke-saved-href="tel:{{ staffMember.workPhone }}" href="tel:{{ staffMember.workPhone }}">{{ staffMember.workPhone }}</a><br> | |
{% endif %} | |
{% if staffMember.workEmail %} | |
<em>Email:</em> <a data-cke-saved-href="mailto:{{ staffMember.workEmail }}" href="mailto:{{ staffMember.workEmail }}">{{ staffMember.workEmail }}</a> | |
{% endif %} | |
</p> | |
{% endif %} | |
{% if staffMember.certifications %} | |
<h3>Certifications</h3> | |
<p>{{ staffMember.certifications|nl2br }}</p> | |
{% endif %} | |
{% if staffMember.highestDegree or staffMember.majorField or staffMember.collegeWhereEarned or staffMember.yearEarned %} | |
<h3>Education</h3> | |
<p> | |
{% if staffMember.highestDegree %} | |
<em>Highest Degree:</em> {{ staffMember.highestDegree }}<br> | |
{% endif %} | |
{% if staffMember.majorField %} | |
<em>Major Field:</em> {{ staffMember.majorField }}<br> | |
{% endif %} | |
{% if staffMember.collegeWhereEarned %} | |
<em>College Where Earned:</em> {{ staffMember.collegeWhereEarned }}<br> | |
{% endif %} | |
{% if staffMember.yearEarned %} | |
<em>Year Earned:</em> {{ staffMember.yearEarned }} | |
{% endif %} | |
</p> | |
{% endif %} | |
{% if staffMember.biography %} | |
<h3>Biography</h3> | |
<p>{{ staffMember.biography|nl2br }}</p> | |
{% endif %} | |
</div> | |
</div> | |
<br><br> | |
{% endfor %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment