From 29789f9e7643c0f0e0be3bb7635aa99855f1a3b5 Mon Sep 17 00:00:00 2001
From: Kevin Lin <kevinl@cs.uw.edu>
Date: Thu, 18 Jun 2020 12:28:45 -0700
Subject: [PATCH] staff.md: Only include TAs if there are any TAs

---
 staff.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/staff.md b/staff.md
index aeef534..3760c91 100644
--- a/staff.md
+++ b/staff.md
@@ -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 %}
-- 
GitLab