Scenario & Omnisend
This commit is contained in:
@ -26,19 +26,15 @@
|
||||
{{ homepage.featured_courses_subheadline }}
|
||||
</div>
|
||||
</div>
|
||||
{% assign catalog_courses = courses.in_catalog %}
|
||||
{% if catalog_courses.any? %}
|
||||
{% assign course_order = courses.in_catalog | where: 'properties', "course_order" %}
|
||||
{{ course_order }}
|
||||
{% if courses.in_catalog.any? %}
|
||||
<div class="np-homepage-featured-courses row">
|
||||
{% for course in catalog_courses %}
|
||||
{% if course.properties.course_order == true %}
|
||||
{% comment %} {% assign home_courses = catalog_courses | sort: "name" %}
|
||||
{% for course in home_courses %}{% endfor %} {% endcomment %}
|
||||
{% for course in course_order %}
|
||||
<div class="col-xs-12 col-sm-8 col-md-12" style="margin:auto;">
|
||||
{% include "cards_featured_course" with course %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="np-homepage-featured-empty">
|
||||
|
||||
Reference in New Issue
Block a user