File tree 4 files changed +39
-0
lines changed
4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ collections:
108
108
announcements :
109
109
homeworks :
110
110
lectures :
111
+ projects :
111
112
112
113
# Define a collection named "resource", its documents reside in the "_resource" directory
113
114
# resource:
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Project 1"
3
+ due_date : 2024-17-10
4
+ pdf : " /assets/projects/proj1.pdf"
5
+ ---
Original file line number Diff line number Diff line change
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 %} -->
You can’t perform that action at this time.
0 commit comments