Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions _data/courses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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


2 changes: 2 additions & 0 deletions _includes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 23 additions & 2 deletions _includes/post-excerpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,29 @@
%}

<div class="post-excerpt">
{% assign url = post.url %}
{% assign url = post.url | default: post.link %}
{% assign title = post.title %}
<a href="{{ url | relative_url }}">{{ title }}</a>
{% assign subtitle = post.subtitle %}
{% if url %}
<a href="{{ url | relative_url }}">{{ title }}</a>
{% else %}
<span>{{ title }}</span>
{% endif %}
{% if subtitle %}
<p><strong>{{ subtitle }}</strong></p>
{% endif %}

{% assign terms_offered = post.terms_offered | default: empty %}
{% if terms_offered.size > 0 %}
<div class="tags">
{% for term in terms_offered %}
<span class="tag">{{ term }}</span>
{% endfor %}
{% if post.next_offered %}
<span class="tag">Next: {{ post.next_offered }}</span>
{% endif %}
</div>
{% endif %}

{%
include post-info.html
Expand All @@ -21,6 +41,7 @@
| default: ""
| regex_scan: "<!-- excerpt start -->(.*)<!-- excerpt end -->", true
| default: post.excerpt
| default: post.description
| default: ""
| strip_html
%}
Expand Down
Loading