random
This commit is contained in:
BIN
NP_Custom_Templates/customer_templates/.DS_Store
vendored
BIN
NP_Custom_Templates/customer_templates/.DS_Store
vendored
Binary file not shown.
@ -28,11 +28,13 @@
|
||||
{{ homepage.featured_courses_subheadline }}
|
||||
</div>
|
||||
</div>
|
||||
{% if courses.featured.any? %}
|
||||
<div class="np-homepage-featured-courses row">
|
||||
{% for course in courses.featured %}
|
||||
<div class="col-xs-12 col-sm-8 col-md-12" style="margin:auto;">
|
||||
{% include "cards_featured_course" with course %}
|
||||
{% if courses.in_catalog.any? %}
|
||||
{% capture course.properties.course_order %}{{ course.properties.course_order | plus: 1 }}{% endcapture %}
|
||||
{% assign catalog_courses = courses.in_catalog | sort: "course.properties.course_order" %}
|
||||
<div class="np-homepage-featured-courses row">
|
||||
{% for course in catalog_courses %}
|
||||
<div class="col-xs-12 col-sm-8 col-md-12" style="margin:auto;">
|
||||
{% include "cards_featured_course" with course %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@ -76,4 +78,4 @@ window.onload = function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
Reference in New Issue
Block a user