Skip to content

Commit

Permalink
added
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLu2004 committed Jul 30, 2024
1 parent 225190b commit d4ee6c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/evaluations.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ const courseCodes = {
const comp2804Evaluations = evaluations
.filter((evaluation) => evaluation.data.course === "comp2804")
.sort((a, b) => Number(b.data.created_at) - Number(a.data.created_at));
const firstSetOfEvaluations = comp2804Evaluations.slice(0, 8);
.sort((a, b) => Number(b.data.created_at) - Number(a.data.created_at))
.slice(0, 8);
const numberOfPages = Math.ceil(comp2804Evaluations.length / 8);
---
Expand All @@ -38,7 +37,7 @@ const numberOfPages = Math.ceil(comp2804Evaluations.length / 8);
<br /> -->
<div class="Evaluations__list" style="margin-bottom:0.75rem">
{
firstSetOfEvaluations.map((evaluation) => (
comp2804Evaluations.map((evaluation) => (
<div>
<a href={`/evaluations/${evaluation.slug}`}>
<RowCard
Expand Down

0 comments on commit d4ee6c9

Please sign in to comment.