Skip to content

Latest commit

 

History

History
107 lines (90 loc) · 3.05 KB

lectures-fall-2018.md

File metadata and controls

107 lines (90 loc) · 3.05 KB
layout title active_tab
default
Lectures
lectures

{% assign anchor_created = false %} {% capture now %}{{'now' | date: '%s'}}{% endcapture %}

The lecture schedule will be updated as the term progresses.

{% for lecture in site.data.lectures-fall-2018 %}
<!-- Create a HTML anchor for the most recent lecture -->
{% capture lecture_date %}{{lecture.date | date: '%s'}}{% endcapture %}
{% assign lecture_date = lecture_date | plus: 0 %}
{% assign now = now | minus: 14400 %}

<tr
{% if anchor_created != true and lecture_date >= now %}
  {% assign anchor_created = true %}
  id="now" 
{% endif %}

{% if lecture.type %}
  {% if lecture.type and lecture.type == 'exam' %}
    class="info" 
  {% else if lecture.type and lecture.type == 'deadline' %}
    class="warning"
  {% else if lecture.type and lecture.type == 'no_lecture' %}
    class="success"
  {% endif %}
{% endif %}
>

<!-- End create a HTML anchor for the most recent lecture -->
  <td>{{ lecture.date | date: '%a, %b %-d, %Y' }}</td>
  <td>
     {{ lecture.title }} 


    {% if lecture.slides %}
      <a href="assets/slides/{{ lecture.slides }}">[slides]</a>
    {% endif %}


    {% if lecture.recording %}
      <a href="{{ lecture.recording }}">[video] </a>
    {% endif %}

    {% if lecture.speaker %}
      {% if lecture.speaker_url %}
        by <a href="{{ lecture.speaker_url }}">{{ lecture.speaker }}</a> 
      {% else %} 
      by {{ lecture.speaker }}
      {% endif %}
    {% endif %}

  </td>
  <td>
    {% if lecture.readings %} 
      {% for reading in lecture.readings %}
      {% if reading.url %}
          {% if reading.optional %}<b>Optional:</b> {% endif %}
          {{ reading.authors }}, <a href="{{ reading.url }}">{{ reading.title }}</a> 
        <br />
      {% else %}
          {% if reading.optional %}<b>Optional</b> {% endif %}
         {{ reading.authors }}, {{ reading.title }} 
        <br />
      {% endif %}
      {% endfor %}
    {% endif %}
  </td>
   <td>
    {% if lecture.videos %} 
      {% for video in lecture.videos %}
      {% if video.authors %} {{ video.authors }}, {% endif %}
      <a href="{{ video.url }}">{{ video.title }}</a> 
      {% if video.length %} ({{ video.length }}) {% endif %}
        <br />
      {% endfor %}
    {% endif %}
  </td>
</tr>
{% endfor %}
Date Topic Required Readings Supplemental Videos