{% comment %} Display syllabus in tabular form. Days are displayed if at least one episode has 'start = true'. {% endcomment %}

Schedule

{% assign day = 0 %} {% assign multiday = false %} {% for episode in site.episodes %} {% if episode.start %}{% assign multiday = true %}{% break %}{% endif %} {% endfor %} {% assign current = site.start_time %} {% for episode in site.episodes %} {% if episode.start %} {% comment %} Starting a new day? {% endcomment %} {% assign day = day | plus: 1 %} {% if day > 1 %} {% comment %} If about to start day 2 or later, show finishing time for previous day {% endcomment %} {% assign hours = current | divided_by: 60 %} {% assign minutes = current | modulo: 60 %} {% if multiday %}{% endif %} {% endif %} {% assign current = site.start_time %} {% comment %}Re-set start time of this episode to general daily start time {% endcomment %} {% endif %} {% assign hours = current | divided_by: 60 %} {% assign minutes = current | modulo: 60 %} {% if multiday %}{% endif %} {% assign current = current | plus: episode.teaching | plus: episode.exercises | plus: episode.break %} {% endfor %} {% assign hours = current | divided_by: 60 %} {% assign minutes = current | modulo: 60 %} {% if multiday %}{% endif %}
Setup Dowload files used on the lesson.
{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }} Finish
{% if episode.start %}Day {{ day }}{% endif %}{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }} {{ episode.title }} {% if episode.break %} Break {% else %} {% if episode.questions %} {% for question in episode.questions %} {{question|markdownify|strip_html}} {% unless forloop.last %}
{% endunless %} {% endfor %} {% endif %} {% endif %}
{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }} Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.