Skip to content

Commit

Permalink
Move homeworks out of info and add to top level, also add lectures pa…
Browse files Browse the repository at this point in the history
…ge to top level
  • Loading branch information
jagdeepsb committed Sep 4, 2024
1 parent fd63088 commit 7bc7b1c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
15 changes: 11 additions & 4 deletions _includes/components/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@
<a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
</div>
<nav aria-label="Main" id="site-nav" class="site-nav">
<div class="info_nav">
{% assign info = site.html_pages

<!-- info/ Pages -->
{% assign info = site.html_pages
| where_exp:"item", "item.info_cat == true"
| where_exp:"item", "item.nav_exclude != true" %}
{% include nav.html pages=info key=nil %}
</div>
{% include nav.html pages=info key=nil %}

<!-- main/ Pages -->
{% assign main_pages = site.pages
| where_exp: "item", "item.path contains 'main/'"
| where_exp:"item", "item.nav_exclude != true" %}
{% include nav.html pages=main_pages key=nil %}

{% if false %}
<div class="notes_nav">
<p class="section-title">Notes</p>
Expand Down
22 changes: 22 additions & 0 deletions main/Lectures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# layout: default
title: "Lectures"
nav_order: 6
# permalink: /homeworks/
---

# Lectures

TODO: create lecture modules and add content here

{% assign sorted_homeworks = site.homeworks | sort: 'release_date' | reverse %}

{% for hw in sorted_homeworks %}
## {{ hw.title }}

- **Release Date:** {{ hw.release_date | date: "%B %d, %Y" }}
- **Due Date:** {{ hw.due_date | date: "%B %d, %Y" }}
- **[Download PDF]({{ hw.pdf }})**
- **[Submit to Gradescope]({{ hw.gradescope_link }})**

{% endfor %}
2 changes: 0 additions & 2 deletions info/homeworks.md → main/homeworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ nav_order: 6

# Homeworks

Below is a list of all homeworks.

{% assign sorted_homeworks = site.homeworks | sort: 'release_date' | reverse %}

{% for hw in sorted_homeworks %}
Expand Down

0 comments on commit 7bc7b1c

Please sign in to comment.