{% assign pgs = site.lessons | sort: 'slug' %} {% assign tableFileParam = {{include.file}} %} {% assign tableFile = site.data[tableFileParam] %} {% assign one_day = 1 | times: 24 | times: 60 | times: 60 %} {% assign two_days = 2 | times: 24 | times: 60 | times: 60 %} {% assign three_days = 3 | times: 24 | times: 60 | times: 60 %} {% assign four_days = 4 | times: 24 | times: 60 | times: 60 %} {% if tableFile.start-day == "monday" %} {% assign curr_date = tableFile.start-date | date: "%s" | minus: four_days%} {% elsif tableFile.start-day == "tuesday" %} {% assign curr_date = tableFile.start-date | date: "%s" | minus: three_days%} {% elsif tableFile.start-day == "wednesday" %} {% assign curr_date = tableFile.start-date | date: "%s" | minus: two_days%} {% elsif tableFile.start-day == "thursday" %} {% assign curr_date = tableFile.start-date | date: "%s" | minus: one_day %} {% endif%}

Instructor Information

Schedule - {{tableFile.semester}}

{% assign curr_week = 1 %} {% assign curr_module = "none" %} {% assign loop_counter = 1 %} {% for page in pgs %} {% if page.path contains "lesson" %} {% assign loop_counter = loop_counter | plus: 1 %} {% if curr_module != page.tag %} {% assign curr_module = page.tag %} {% endif%} {% if curr_week == tableFile.break %} {% assign curr_date = curr_date | date: %s | plus: two_days %} {% assign curr_date = curr_date | date: %s | plus: two_days %} {% assign curr_date = curr_date | date: %s | plus: two_days %} {% assign curr_week = curr_week | plus: 1 %} {%else%} {% comment %} Need to keep track of our own loop counter to filter out docs don't use forloop.index {% endcomment %} {% assign tmp = loop_counter | modulo: 2 %} {% if tmp == 0 %} {% endif %} {% assign curr_date = curr_date | date: %s | plus: two_days %} {%endif%} {% endif %} {% endfor%}
Week Due Date Lesson
{{page.tag | capitalize }}
{{curr_date | date: "%m/%d - %a"}} {{page.title}} ({{page.slug}}){%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}
{% assign curr_date = curr_date | date: %s | plus: three_days %} {{curr_week}} {{curr_date | date: "%m/%d - %a"}} Break
{{curr_date | date: "%m/%d - %a"}} Break
{% assign curr_date = curr_date | date: %s | plus: three_days %} {{curr_week}} {% assign curr_week = curr_week | plus: 1 %} {{curr_date | date: "%m/%d - %a"}} {{page.title}} ({{page.slug}}){%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}