Skip to content

Latest commit

 

History

History
203 lines (157 loc) · 5.84 KB

File metadata and controls

203 lines (157 loc) · 5.84 KB
layout title active_tab term_start term_end lecture_days
default
Schedule
items
2022-08-30
2022-12-15
Tuesdays and Thursdays

{% capture start_date %}{{page.term_start | date: '%s'}}{% endcapture %} {% capture end_date %}{{page.term_end | date: "%Y-%m-%d" }}{% endcapture %} {% for i in (1..365) %}

{% assign seconds = {i} | times: 24 | times: 60 | times: 60 %} {% capture curr_date %}{{ start_date | date: "%s" | plus: seconds | date: "%Y-%m-%d" }}{% endcapture %}

{% capture day_of_week %}{{ curr_date | date: "%A" }}{% endcapture %}

{% if curr_date > end_date %} {% break %} {% endif %}

{% assign is_lecture_day = false %} {% if page.lecture_days contains day_of_week %} {% assign is_lecture_day = true %} {% endif %}

{% for ucal in site.data.university_calendar %}

{% capture ucal_date %}{{ucal.date | date: "%Y-%m-%d"}}{% endcapture %} {% if ucal_date == curr_date %}

{% endif %} {% endfor %}

{% for module in site.data.modules %} {% capture module_start_date %}{{ module.start_date | date: "%Y-%m-%d"}}{% endcapture %} {% if module_start_date == curr_date %}

{% capture slides %}{{module.slides}}{% endcapture %} {% endif %}

{% for quiz in module.quiz %} {% capture quiz_due_date %}{{ quiz.due_date | date: "%Y-%m-%d"}}{% endcapture %} {% if quiz_due_date == curr_date %}

{% endif %} {% endfor %} {% endfor %}

{% for exam in site.data.exams %} {% capture exam_due_date %}{{ exam.due_date | date: "%Y-%m-%d"}}{% endcapture %} {% if exam_due_date == curr_date %}

{% endif %} {% endfor %}

{% for page in site.pages %} {% if page.active_tab == "homework" %}

{% capture hw_due_date %}{{ page.due_date | date: "%Y-%m-%d"}}{% endcapture %}

{% if hw_due_date == curr_date %}

{% endif %}

{% endif %} {% endfor %}

{% if is_lecture_day == true %} {% assign displyed_lecture_info = false %} {% for lecture in site.data.lectures %} {% capture lecture_date %}{{lecture.date | date: "%Y-%m-%d"}}{% endcapture %}

{% if lecture_date == curr_date %}

{% assign displyed_lecture_info = true %} {% endif %} {% endfor %}

{% if displyed_lecture_info == false %}

{% endif %}

{% endif %}

{% for recitation in site.data.recitations %} {% capture recitation_date %}{{recitation.date | date: "%Y-%m-%d"}}{% endcapture %}

{% if recitation_date == curr_date %}

{% endif %} {% endfor %}

{% endfor %}

Date Topic
{{ ucal.date | date: '%a, %b %-d, %Y' }} {{ ucal.title | markdownify }} {% if ucal.type == 'no_lecture' %} (No lecture) {% assign is_lecture_day = false %} {% endif %}
{{ module.start_date | date: '%a, %b %-d, %Y' }}Start of Module {{module.module_number}} - {{module.title}}
{{ quiz.due_date | date: '%a, %b %-d, %Y' }} {% if quiz.url %} {{quiz.title}} is due. {% else %} {{quiz.title}} is due. {% endif %} {% if module.readings %} The quiz covers:
    {% for reading in module.readings %} {% if reading.optional %} {% else %}
  • {{reading.title}}
  • {% endif %} {% endfor %}
{% endif %}
{{ exam.due_date | date: '%a, %b %-d, %Y' }} {{exam.title}}

{% if exam.type == "in-person" %}

  • in person at {{ exam.due_date | date: '%H:%M%p' }} {% endif %}

{% if exam.type == "online" %}

  • online. Due by {{ exam.due_date | date: '%a, %b %-d, %Y %H:%M%p' }} {% endif %} {% if exam.url %} [link] {% endif %}
{{ hw_due_date | date: '%a, %b %-d, %Y' }}[{{page.title}}]({{page.url}}) is due
{{ lecture_date | date: '%a, %b %-d, %Y' }}{{lecture.title}} [[recording]]({{lecture.recording}}) {% if lecture.slides %} [[slides]](slides/{{lecture.slides}}) {% else %} [[slides]](slides/{{slides}}) {% endif %}
{{ curr_date | date: '%a, %b %-d, %Y' }} Lecture [[slides]](slides/{{slides}})
{{ recitation_date | date: '%a, %b %-d, %Y' }}{{recitation.title}} [[recording]]({{recitation.recording}}) {% if recitation.slides %} [[slides]](slides/{{slides}}) {% endif %}