Updated Source & Supplier's Templates and moved them to sandbox.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<div class="col-xs-12">
|
||||
<div class="np-homepage-featured-text">
|
||||
<div class="np-homepage-headline">
|
||||
{{ homepage.featured_courses_headline }}
|
||||
Grow With Walmart Learning Pathways
|
||||
</div>
|
||||
<div class="featured-carousel-controls np-hidden-mobile">
|
||||
<div class="prev-arrow carousel-control"><i class="far fa-chevron-left"></i></div>
|
||||
@ -14,11 +14,10 @@
|
||||
{% assign featured_courses_count = 0 %}
|
||||
<div class="featured-courses-wrapper">
|
||||
<div class="featured-courses-slider">
|
||||
{% for course in items %}
|
||||
{% if course.properties.is_article_course %}
|
||||
{% for learning_path in items %}
|
||||
{% assign is_featured = false %}
|
||||
|
||||
{% for cat in course.categories %}
|
||||
{% for cat in learning_path.categories %}
|
||||
{% assign cat_name = cat.name | downcase %}
|
||||
{% if cat_name == "featured" %}
|
||||
{% assign is_featured = true %}
|
||||
@ -28,11 +27,10 @@
|
||||
{% if is_featured %}
|
||||
{% assign featured_courses_count = featured_courses_count | plus: 1 %}
|
||||
|
||||
<div class="featured-course-slide" data-position="{{course.properties.course_position}}">
|
||||
{% include "cards_article" with course %}
|
||||
<div class="featured-course-slide">
|
||||
{% include "cards_learning_path" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
@ -140,10 +138,10 @@ function initFeaturedCoursesCarousel() {
|
||||
}
|
||||
|
||||
.np-homepage-featured-text .np-homepage-headline {
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
line-height: 32px;
|
||||
color:#333;
|
||||
color:#fff;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user