--- layout: base permalink: / --- {% comment %} Get the next stream. {% endcomment %} {% include 1-tools/sort-videos.html videos=site.Streams future=true reverse=true %} {% assign nextStream = out_sortedVideos | where_exp: 'stream', 'stream.date >= site.time' | first %} {% comment %} Get latest coding challenges, coding in the cabana and teachable machine video. {% endcomment %} {% assign featuredSeries = site.challenges | concat: site.CodingChallenges | concat: site.TeachableMachine %} {% include 1-tools/sort-videos.html videos=featuredSeries sortByDate=true reverse=true %} {% comment %} Use the latest coding challenge, coding in the cabana or teachable machine video if a stream hasn't been scheduled yet. {% endcomment %} {% if nextStream == null %} {% assign offset = 1 %} {% assign nextStream = out_sortedVideos | first %} {% else %} {% assign offset = 0 %} {% endif %} {% assign featuredVideos = '' | split: '' %} {% comment %} Add latest coding challenges, coding in the cabana or teachable machine video to featured videos array. {% endcomment %} {% for challengeCabanaOrTM in out_sortedVideos limit:3 offset:offset %} {% assign featuredVideos = featuredVideos | push: challengeCabanaOrTM %} {% endfor %}
{%
endcapture %}
{% include 3-modules/hero-item.html image=merchStoreImage title='Coding Train Store'
content='Visit the Coding Train store with a small selection of high quality items' url=site.links.merch cta='Shop for Merchandise' class='merch-store' %}
{% comment %} {% capture amazonStoreImage %}
{%
endcapture %}
{% include 3-modules/hero-item.html image=amazonStoreImage title="Love to read?" content='Find
books and other products featured on The Coding Train!' url=site.links.amazon cta='Shop for Books and more'
class='amazon-store' %} {% endcomment %}