

{% assign in_progress_courses = 0 %}
{% for course in courses.enrolled %}
  {% if course.progress > 0 and course.progress < 100 %}
    {% assign in_progress_courses = in_progress_courses |  plus: 1 %}
  {% endif %}
{% endfor %}

  {% if current_person.properties.first_login %}
    {% include 'modal' %}
  {% endif %}

{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero">
    <img class="np-homepage-hero-image"
      src="{{ homepage.artwork_url }}"
      alt="{{ homepage.headline }}"
    />
  </div>

  <div class="np-max-width">
    {% include 'homepage_nav' %}
  </div>
  <div class="np-max-width">
    {% comment %} <section>
      {% include 'welcome_section' %}
    </section> {% endcomment %}
    <section>
      {% include 'homepage_widget_and_events' %}
    </section>
    {% if in_progress_courses > 0 %}
      <section>
        {% include 'continue_learning' %}
      </section>
    {% endif %}
    <section>
      {% include 'catalog_categories' %}
    </section>
    <section>
      {% include 'faq_section' %}
    </section>
  </div>
</main>
{% include "footer" %}
