Skip to content

Commit

Permalink
Add a projects tab with proj1
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeepsb committed Oct 10, 2024
1 parent c7efa72 commit 11b71b2
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ collections:
announcements:
homeworks:
lectures:
projects:

# Define a collection named "resource", its documents reside in the "_resource" directory
# resource:
Expand Down
5 changes: 5 additions & 0 deletions _projects/p1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Project 1"
due_date: 2024-17-10
pdf: "/assets/projects/proj1.pdf"
---
Binary file added assets/projects/proj1.pdf
Binary file not shown.
33 changes: 33 additions & 0 deletions main/projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "Projects"
nav_order: 3
---

# Projects

{% assign limit_value = 1 %} <!-- Set this to the number of projects to display-->
{% assign sorted_projects = site.projects | sort: 'release_date' %}
{% assign filtered_projects = sorted_projects | slice: 0, limit_value %}

<!-- Debugging output -->
<!-- <p>Limit Value: {{ limit_value }}</p>
<p>Total Items: {{ total_items }}</p>
<p>Start Index: {{ start_index }}</p> -->
<!-- <p>Sorted projects:</p>
<pre>{{ sorted_projects | inspect }}</pre> -->
<!-- <p>Filtered projects:</p>
<pre>{{ filtered_projects |inspect }}</pre> -->

{% for proj in filtered_projects %}
## {{ proj.title }}

<!-- - **Release Date:** {{ proj.release_date | date: "%B %d, %Y" }} -->
- **Due Date:** {{ proj.due_date | date: "%B %d, %Y" }}
- {% if proj.pdf %} **[PDF]({{ proj.pdf }})** {% else %} **PDF:** *To be released* {% endif %}
- {% if proj.sln %} **[Solution]({{ proj.sln }})** {% else %} **Solution:** *To be released* {% endif %}
{% if proj.additional_links %} - **Additional Links:** {% for link in proj.additional_links %}
- [{{ link.name }}]({{ link.link }}) {% endfor %} {% endif %}

{% endfor %}

<!-- - {% if proj.gradescope_link %} **[Submit to Gradescope]({{ proj.gradescope_link }})** {% else %} **Submit to Gradescope:** *To be released* {% endif %} -->

0 comments on commit 11b71b2

Please sign in to comment.