<section>
  <h2>Work</h2>
  {%- for work in cv.work %}
    <section>
      <header>
        <h3>{{ work.position }}</h3>
        <span class="company">
          {{ work.name }}
        </span>
        <span class="date">
          {%- if work.period -%}
            {{ work.period }}
          {%- else -%}
            {{ work.startDate }} &ndash;&nbsp;{{ work.endDate }}
          {%- endif %}
        </span>
      </header>
      <ul>
        {%- for highlight in work.highlights %}
          <li>
            {{ highlight }}
          </li>
        {%- endfor %}
      </ul>
    </section>
  {%- endfor %}
</section>