Skip to content

Commit

Permalink
dynamically add problems to index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Methaphur committed Nov 24, 2024
1 parent 1abea9e commit c1731c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ header_pages:
- leaderboard.md
- CS141.md

collections:
problems:
output: true

# set the size of the text to 'large' or 'small', default is small
font-size: medium
3 changes: 2 additions & 1 deletion problems/problem1.md → _problems/problem1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: post
permalink: problems/problem1
permalink_name: /Problem 1
permalink_name: Problem 1
date: 2024-10-28
title: Problem Of The Week 1 (Solved)
---

Expand Down
3 changes: 2 additions & 1 deletion problems/problem2.md → _problems/problem2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: post
permalink: problems/problem2
permalink_name: /Problem 2
permalink_name: Problem 2
date: 2024-11-11
title: Problem Of The Week 2 (Solved)
---

Expand Down
3 changes: 2 additions & 1 deletion problems/problem3.md → _problems/problem3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: post
permalink: problems/problem3
permalink_name: /Problem 3
permalink_name: Problem 3
date: 2024-11-18
title: Problem Of The Week 3 (Solved)
---

Expand Down
7 changes: 3 additions & 4 deletions problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ title: Previous Problems

---


Here is a list of previous problems. Click on the links to view the details:

- [Problem 3 - 2024-11-18]({{ site.baseurl }}/problems/problem3)
- [Problem 2 - 2024-11-11]({{ site.baseurl }}/problems/problem2)
- [Problem 1 - 2024-10-28]({{ site.baseurl }}/problems/problem1)
{% for problem in site.problems reversed %}
-[{{ problem.permalink_name }} - {{ problem.date | date: "%d/%m/%Y" }}]({{site.baseurl}}{{ problem.url }})
{% endfor %}

0 comments on commit c1731c6

Please sign in to comment.