Skip to content

Commit 686b556

Browse files
committed
fix: changed logic for ordering
1 parent 0e54806 commit 686b556

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pages/index.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Author from '@/components/ui/Author.astro';
66
import { DEFAULT_CONFIGURATION } from '@/lib/constants';
77
import WorkExperience from '@/components/ui/WorkExperience.astro';
88
import Talk from '@/components/ui/Talk.astro';
9-
import { sortJobsByDate, sortTalksByYear } from '@/lib/utils';
9+
import { sortByDateRange, sortByYear } from '@/lib/utils';
1010
1111
const entry = await getEntry('pages', 'homepage');
1212
@@ -17,10 +17,12 @@ if (!entry) {
1717
const { Content } = await render(entry);
1818
1919
const links = await getCollection('links');
20+
2021
const jobs = await getCollection('jobs');
21-
const sortedJobs = sortJobsByDate(jobs);
22+
const sortedJobs = sortByDateRange(jobs);
23+
2224
const talks = await getCollection('talks');
23-
const sortedTalks = sortTalksByYear(talks);
25+
const sortedTalks = sortByYear(talks);
2426
---
2527

2628
<BaseLayout seo={entry.data.seo}>

0 commit comments

Comments
 (0)