Skip to content
Snippets Groups Projects
Commit 29789f9e authored by Kevin Lin's avatar Kevin Lin
Browse files

staff.md: Only include TAs if there are any TAs

parent 22342c5a
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,12 @@ Staff information is stored in the `_staffers` directory and rendered according
{{ staffer }}
{% endfor %}
{% assign teaching_assistants = site.staffers | where: 'role', 'Teaching Assistant' %}
{% assign num_teaching_assistants = teaching_assistants | size %}
{% if num_teaching_assistants != 0 %}
## Teaching Assistants
{% assign teaching_assistants = site.staffers | where: 'role', 'Teaching Assistant' %}
{% for staffer in teaching_assistants %}
{{ staffer }}
{% endfor %}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment