How can I iterate through an array of field handles for an entry?
I figured it out! I ditched the macro and just included the following in my template:

{% for field in courseFields %}

  &lt;section class="col-xl mb-3"&gt;
    &lt;h2 id="{{ field.handle }}"&gt;{{ field.title }}&lt;/h2&gt;
    {{ entry[field.handle] }}
  &lt;/section&gt;

{% endfor %}