Skip to content

Commit

Permalink
add different alumni cards
Browse files Browse the repository at this point in the history
  • Loading branch information
nsteinme committed Nov 11, 2024
1 parent 53864a4 commit 3b07881
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions _includes/personAlum.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div class="post-card" itemprop="blogPosts" itemscope="" itemtype="http://schema.org/BlogPosting">

<a class="post-card__inner" href="{{ person.url | relative_url }}">
<div class="post-card__header">
<h2>{{ person.name | strip_html | truncate: 50 }}</h2>

<!-- {% assign date_format = site.sleek.date_format | default: "%b %-d, %Y" %} -->
<!-- <span class="post-card__meta">
<time>{{ post.date | date: date_format }}</time>
</span> -->
<span class="post-card__meta">
{{ person.role }}
{% if person.status == "alumni" %}
<br>{{ person.years }}
{% endif %}
</span>
</div>
<!-- {% if post.summary %}
<p>{{ post.summary | strip_html | truncatewords:20 }}</p>
{% else %}
<p>{{ post.content | strip_html | truncatewords: 20 }}</p>
{% endif %} -->
</a>
</div>
2 changes: 1 addition & 1 deletion _layouts/people.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1><i>Alumni</i></h1>

{% for person in people %}
{% if person.status == "alumni" %}
{% include person.html %}
{% include personAlum.html %}
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit 3b07881

Please sign in to comment.