Skip to content

Commit 11b71b2

Browse files
committed
Add a projects tab with proj1
1 parent c7efa72 commit 11b71b2

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ collections:
108108
announcements:
109109
homeworks:
110110
lectures:
111+
projects:
111112

112113
# Define a collection named "resource", its documents reside in the "_resource" directory
113114
# resource:

_projects/p1.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Project 1"
3+
due_date: 2024-17-10
4+
pdf: "/assets/projects/proj1.pdf"
5+
---

assets/projects/proj1.pdf

111 KB
Binary file not shown.

main/projects.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Projects"
3+
nav_order: 3
4+
---
5+
6+
# Projects
7+
8+
{% assign limit_value = 1 %} <!-- Set this to the number of projects to display-->
9+
{% assign sorted_projects = site.projects | sort: 'release_date' %}
10+
{% assign filtered_projects = sorted_projects | slice: 0, limit_value %}
11+
12+
<!-- Debugging output -->
13+
<!-- <p>Limit Value: {{ limit_value }}</p>
14+
<p>Total Items: {{ total_items }}</p>
15+
<p>Start Index: {{ start_index }}</p> -->
16+
<!-- <p>Sorted projects:</p>
17+
<pre>{{ sorted_projects | inspect }}</pre> -->
18+
<!-- <p>Filtered projects:</p>
19+
<pre>{{ filtered_projects |inspect }}</pre> -->
20+
21+
{% for proj in filtered_projects %}
22+
## {{ proj.title }}
23+
24+
<!-- - **Release Date:** {{ proj.release_date | date: "%B %d, %Y" }} -->
25+
- **Due Date:** {{ proj.due_date | date: "%B %d, %Y" }}
26+
- {% if proj.pdf %} **[PDF]({{ proj.pdf }})** {% else %} **PDF:** *To be released* {% endif %}
27+
- {% if proj.sln %} **[Solution]({{ proj.sln }})** {% else %} **Solution:** *To be released* {% endif %}
28+
{% if proj.additional_links %} - **Additional Links:** {% for link in proj.additional_links %}
29+
- [{{ link.name }}]({{ link.link }}) {% endfor %} {% endif %}
30+
31+
{% endfor %}
32+
33+
<!-- - {% if proj.gradescope_link %} **[Submit to Gradescope]({{ proj.gradescope_link }})** {% else %} **Submit to Gradescope:** *To be released* {% endif %} -->

0 commit comments

Comments
 (0)