diff --git a/_config.yml b/_config.yml index 84a23b0..e2546ec 100644 --- a/_config.yml +++ b/_config.yml @@ -108,6 +108,7 @@ collections: announcements: homeworks: lectures: + projects: # Define a collection named "resource", its documents reside in the "_resource" directory # resource: diff --git a/_projects/p1.md b/_projects/p1.md new file mode 100644 index 0000000..9ec357b --- /dev/null +++ b/_projects/p1.md @@ -0,0 +1,5 @@ +--- +title: "Project 1" +due_date: 2024-17-10 +pdf: "/assets/projects/proj1.pdf" +--- diff --git a/assets/projects/proj1.pdf b/assets/projects/proj1.pdf new file mode 100644 index 0000000..316cb10 Binary files /dev/null and b/assets/projects/proj1.pdf differ diff --git a/main/projects.md b/main/projects.md new file mode 100644 index 0000000..3cf4d63 --- /dev/null +++ b/main/projects.md @@ -0,0 +1,33 @@ +--- +title: "Projects" +nav_order: 3 +--- + +# Projects + +{% assign limit_value = 1 %} +{% assign sorted_projects = site.projects | sort: 'release_date' %} +{% assign filtered_projects = sorted_projects | slice: 0, limit_value %} + + + + + + +{% for proj in filtered_projects %} +## {{ proj.title }} + + +- **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 %} + + \ No newline at end of file