Skip to content

Commit

Permalink
Merge pull request #227 from gonuke/fix_alumni_list
Browse files Browse the repository at this point in the history
fix handling of alumni info based on section name
  • Loading branch information
MicahGale authored Sep 13, 2023
2 parents bf197a9 + 1c46b3b commit edde4bb
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions _layouts/people.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,7 @@ <h1>{{ page.title | escape }}</h1>
</header>

{% for group in site.data.people %}
{% if group.group != "Alumni" %}
<section>
<h2> {{ group.group }}</h2>
{% for person in group.people %}
{% assign start_row = forloop.index | modulo : 4 %}
{% if start_row == 1 %}
<div class="row">
{% endif %}
<div class="col-sm-3">
{% if person.image != null %}
<a href="{{ person.url }}"><img class="cnerg-headshot" src="{{ person.url }}/{{ person.image }}"><br/>
{% else %}
<a href="{{ person.url }}"><img class="cnerg-headshot" src="hacker_blank.jpg"><br/>
{% endif %}
<b>{{ person.name }}</b> <br/>
{{ person.role }}</a>
</div>
{% if start_row == 0 %}
</div>
{% endif %}
{% endfor %}
</section>
{% else %}
{% if group.group contains "Alumni" %}
<section>
<h2>{{ group.group }}</h2>
<ol>
Expand All @@ -53,6 +31,28 @@ <h2>{{ group.group }}</h2>
{% endfor %}
</ol>
</section>
{% else %}
<section>
<h2> {{ group.group }}</h2>
{% for person in group.people %}
{% assign start_row = forloop.index | modulo : 4 %}
{% if start_row == 1 %}
<div class="row">
{% endif %}
<div class="col-sm-3">
{% if person.image != null %}
<a href="{{ person.url }}"><img class="cnerg-headshot" src="{{ person.url }}/{{ person.image }}"><br/>
{% else %}
<a href="{{ person.url }}"><img class="cnerg-headshot" src="hacker_blank.jpg"><br/>
{% endif %}
<b>{{ person.name }}</b> <br/>
{{ person.role }}</a>
</div>
{% if start_row == 0 %}
</div>
{% endif %}
{% endfor %}
</section>
{% endif %}
{% endfor %}

Expand Down

0 comments on commit edde4bb

Please sign in to comment.