diff --git a/_data/courses.yaml b/_data/courses.yaml index cfcaeb6..58cfd8a 100644 --- a/_data/courses.yaml +++ b/_data/courses.yaml @@ -2,20 +2,29 @@ subtitle: CSC 230 group: featured image: images/photo.jpg - link: https://github.com/ - description: Lorem ipsum _dolor sit amet_, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - repo: greenelab/lab-website-template + link: https://smithcsc230.github.io + terms_offered: + - Fall 2023 + - Spring 2025 + - Spring 2026 + next_offered: Spring 2027 + description: Course materials for CSC 230 are available at the course site. Next offering is tentative. tags: - resource -- title: Data Structures +- title: Introduction to Data Structures subtitle: CSC 210 group: featured image: images/photo.jpg - link: https://github.com/ - description: Lorem ipsum _dolor sit amet_, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - repo: greenelab/lab-website-template + link: https://smithcsc210.github.io + terms_offered: + - Fall 2023 + - Spring 2024 + - Fall 2024 + - Spring 2025 + - Fall 2025 + - Spring 2026 + next_offered: Taught by other instructors in Fall 2026 + description: Course materials for CSC 210 are available at the course site. Halie's next offering is currently unknown. tags: - resource - - diff --git a/_includes/list.html b/_includes/list.html index 92026fd..d1d64b8 100644 --- a/_includes/list.html +++ b/_includes/list.html @@ -47,7 +47,9 @@ style=style subtitle=d.subtitle tags=d.tags + terms_offered=d.terms_offered text=d.text + next_offered=d.next_offered title=d.title tooltip=d.tooltip type=d.type diff --git a/_includes/post-excerpt.html b/_includes/post-excerpt.html index 5b7d811..dcccec0 100644 --- a/_includes/post-excerpt.html +++ b/_includes/post-excerpt.html @@ -5,9 +5,29 @@ %}
- {% assign url = post.url %} + {% assign url = post.url | default: post.link %} {% assign title = post.title %} - {{ title }} + {% assign subtitle = post.subtitle %} + {% if url %} + {{ title }} + {% else %} + {{ title }} + {% endif %} + {% if subtitle %} +

{{ subtitle }}

+ {% endif %} + + {% assign terms_offered = post.terms_offered | default: empty %} + {% if terms_offered.size > 0 %} +
+ {% for term in terms_offered %} + {{ term }} + {% endfor %} + {% if post.next_offered %} + Next: {{ post.next_offered }} + {% endif %} +
+ {% endif %} {% include post-info.html @@ -21,6 +41,7 @@ | default: "" | regex_scan: "(.*)", true | default: post.excerpt + | default: post.description | default: "" | strip_html %}