{% 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%}
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}} | {% assign curr_date = curr_date | date: %s | plus: two_days %}{{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 %} | {% endif %} {% assign curr_date = curr_date | date: %s | plus: two_days %}{{curr_date | date: "%m/%d - %a"}} | {{page.title}} ({{page.slug}}){%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%} |