layout | title | active_tab |
---|---|---|
default |
Modules |
recordings |
{% capture now %}{{'now' | date: '%s'}}{% endcapture %} {% assign now = now | plus: 0 %}
{% for module in site.data.modules %}
{% capture module_start_date %}{{module.start_date | date: '%s'}}{% endcapture %} {% capture module_end_date %}{{module.end_date | date: '%s'}}{% endcapture %} {% assign module_start_date = module_start_date | plus: 0 %} {% assign module_end_date = module_end_date | plus: 0 %}
{% if module_start_date <= now and module_end_date >= now %} {% endif %}
{{module.description}}
{% if module.intro_video %} * Intro: Module {{ forloop.index }} [Video] {% endif %} {% for lesson in module.lessons %}
- Lesson {{ forloop.index }}: {{lesson.title}} {%if lesson.video %}[Video]{% endif %} {% endfor %}
{% if module.slides %} Slides: [Slides] {% endif %}
{% if module.readings %} Readings: {% for reading in module.readings %} {% if reading.url %}
- {% if reading.optional %}Optional: {% endif %} {{ reading.authors }}, {{ reading.title }} {% else %}
- {% if reading.optional %}Optional {% endif %} {{ reading.authors }}, {{ reading.title }} {% endif %} {% endfor %} {% endif %}
{% if module.homework %} Homework:
-
{% for page in site.pages %}
{% capture due_year %}{{page.due_date | date: '%Y'}}{% endcapture %}
- {{ page.title }} {% if this_year == due_year %} (due {{ page.due_date | date: "%A, %B %-d, %Y" }}) {% endif %} {% endif %} {% endfor %}
{% if page.title contains module.homework %}
{% if module.quiz %} Quiz:
-
{% for quiz in module.quiz %}
- {{ quiz.title }} {% if this_year == due_year %} (due {{ quiz.due_date | date: "%A, %B %-d, %Y" }}) {% endif %} {% endfor %}
{% capture due_year %}{{quiz.due_date | date: '%Y'}}{% endcapture %}
{% endfor %}