

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


{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero">
    <img class="homepage-hero-image"
      src="https://s3.us-east-1.amazonaws.com/static.northpass.com/Walmart+Mexico/homepage-image-hero.jpg.png"
      alt="{{ homepage.headline }}"
    />
  </div>

  <div class="np-max-width">
    <section>
      {% include 'mi_ruta_welcome_section' %}
    </section> 
    <section>
      {% include 'mi_ruta_link_section' %}
    </section> 
    <section>
      {% include 'mi_ruta_link_impulsa_section' %}
    </section> 
  </div>
  <div class="np-max-width">
    <section>
      {% include 'mi_ruta_widget_and_events' %}
    </section>
    {% if in_progress_courses > 0 %}
      <section>
        {% include 'continue_learning' %}
      </section>
    {% endif %}
  </div>
</main>
{% include "footer" %}
