<section>
  <h2>Publications</h2>
  {%- for publication in cv.publications %}
    <section>
      <header>
        <h3>
          {{ publication.name }}
          {%- if publication.url %} • <a class="expandLink" href="{{ publication.url }}" target="_blank" rel="noopener noreferrer" title="View publication: {{ publication.name }}">
          <span>PDF</span>
          </a>
          {%- endif -%}
        </h3>
        <span>
          {% for author in publication.authors %}
            {% if author == "Drew Edgar" %}
              <span class="author">{{ author }}</span>{% unless forloop.last %}, {% endunless %}
            {% else %}
              {{ author }}{% unless forloop.last %}, {% endunless %}
            {% endif %}
          {% endfor %}
        </span>
        <span>

          {%- if publication.publisher -%}
          {{ publication.publisher }}
          {%- endif %}
          {%- if publication.publisherNote -%}
          <span class="publisherNote">
            ({{ publication.publisherNote }})
          </span>
          {%- endif %}

          {%- if publication.noteLink %} • 
          <a class="noteLink publisherNote" href="{{ publication.noteLink }}" target="_blank" rel="noopener noreferrer" title="View publication: {{ publication.name }}">
          <span>Link<span>
          </a>
          {%- endif -%}

        </span>
        <span class="publicationStatus">
          {%- if publication.status -%}
          {{ publication.status }}
          {%- endif %}
        </span>
      </header>
    </section>

  {%- endfor %}
</section>
