From 80af31504f8758a87d20898409e3b3ee375e7c91 Mon Sep 17 00:00:00 2001 From: HM Rando Date: Fri, 10 Apr 2026 10:14:06 -0400 Subject: [PATCH 1/3] Update database course information --- _data/courses.yaml | 6 ++---- _includes/post-excerpt.html | 13 +++++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/_data/courses.yaml b/_data/courses.yaml index cfcaeb6..68ee939 100644 --- a/_data/courses.yaml +++ b/_data/courses.yaml @@ -2,9 +2,8 @@ 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 + description: Taught in Fall 2023, Spring 2025, and Spring 2026. Next offered (tentative): Spring 2027. Course materials for CSC 230 are available at the course site. tags: - resource @@ -18,4 +17,3 @@ tags: - resource - diff --git a/_includes/post-excerpt.html b/_includes/post-excerpt.html index 5b7d811..93cfcae 100644 --- a/_includes/post-excerpt.html +++ b/_includes/post-excerpt.html @@ -5,9 +5,17 @@ %}
- {% 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 %} {% include post-info.html @@ -21,6 +29,7 @@ | default: "" | regex_scan: "(.*)", true | default: post.excerpt + | default: post.description | default: "" | strip_html %} From da0ccce003f6acfc05a5ca9f1ecafab13898603c Mon Sep 17 00:00:00 2001 From: HM Rando Date: Fri, 10 Apr 2026 10:16:21 -0400 Subject: [PATCH 2/3] Standardize course term metadata --- _data/courses.yaml | 8 ++++++-- _includes/list.html | 2 ++ _includes/post-excerpt.html | 12 ++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/_data/courses.yaml b/_data/courses.yaml index 68ee939..bdbc1cf 100644 --- a/_data/courses.yaml +++ b/_data/courses.yaml @@ -3,7 +3,12 @@ group: featured image: images/photo.jpg link: https://smithcsc230.github.io - description: Taught in Fall 2023, Spring 2025, and Spring 2026. Next offered (tentative): Spring 2027. Course materials for CSC 230 are available at the course site. + 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 @@ -16,4 +21,3 @@ repo: greenelab/lab-website-template 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 93cfcae..dcccec0 100644 --- a/_includes/post-excerpt.html +++ b/_includes/post-excerpt.html @@ -17,6 +17,18 @@

{{ 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 author=post.author From c4bbef3576b3acad92e27afacbf9997216076669 Mon Sep 17 00:00:00 2001 From: HM Rando Date: Fri, 10 Apr 2026 10:21:31 -0400 Subject: [PATCH 3/3] Update CSC 210 course information --- _data/courses.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/_data/courses.yaml b/_data/courses.yaml index bdbc1cf..58cfd8a 100644 --- a/_data/courses.yaml +++ b/_data/courses.yaml @@ -12,12 +12,19 @@ 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