{{ page.title }}
{% endif %} - {{ content }} + --{% include footer.html %} -
Week | -Date | -Lecture Title | -Lecturer | -Lab | -Lab Due Date | -||||
---|---|---|---|---|---|---|---|---|---|
{{ entry.week | default: - }} | -{{ entry.date | date: "%a. %m/%d" }} | - {% if entry.note %} -- {{ entry.note }} - | - {% else %} - {% for item in site.data.materials %} - {% if item.id == entry.id %} -- {% if item.video and item.hidelink != true %} - - {% endif %} - {{ item.name | default: - }} - {% if item.video %} - - {% endif %} - - {% if item.slides and item.hidelink != true %} - (slides) - {% endif %} - - | -- {{ item.lecturer | default: "TBA" | xml_escape }} - | -- {% if item.lab %} - {% if item.hidelink %} - Lab {{ item.id }} - {% else %} - - Lab {{ item.id }} - - {% endif %} - {% else %} - - - {% endif %} - | -{{ entry.labdue | date: "%a. %m/%d" }} | - {% endif %} - {% endfor %} - {% endif %} -
(Interest form not loading? Click here!)
diff --git a/_includes/minutes.liquid b/_includes/minutes.liquid new file mode 100644 index 00000000..c3207ae4 --- /dev/null +++ b/_includes/minutes.liquid @@ -0,0 +1,20 @@ +{% capture _minutes_workspace %} + {% comment %} + Return the number of minutes between midnight and the given time string (e.g. '9:30 AM'). + + Parameters: + `time` (string): the time to convert. + {% endcomment %} + + {% assign _time = include.time %} + {% assign _hhmm = _time | split: ' ' | first | split: ':' %} + {% assign _hours = _hhmm | first | to_integer %} + {% assign _minutes = _hhmm | last | to_integer %} + {% assign _ampm = _time | split: ' ' | last | upcase %} + + {% if _ampm == 'AM' and _hours == 12 %} + {% assign _hours = _hours | minus: 12 %} + {% elsif _ampm == 'PM' and _hours != 12 %} + {% assign _hours = _hours | plus: 12 %} + {% endif %} +{% endcapture %}{% assign _minutes_workspace = '' %}{{ _hours | times: 60 | plus: _minutes }} diff --git a/_includes/staff.html b/_includes/staff.html deleted file mode 100644 index 8fe19b92..00000000 --- a/_includes/staff.html +++ /dev/null @@ -1,22 +0,0 @@ - -{{ member.description }}
-Below are previous semesters' archived course websites:
+ +Below are previous semesters' archived course websites:
- -