File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Author from '@/components/ui/Author.astro';
66import { DEFAULT_CONFIGURATION } from ' @/lib/constants' ;
77import WorkExperience from ' @/components/ui/WorkExperience.astro' ;
88import Talk from ' @/components/ui/Talk.astro' ;
9- import { sortJobsByDate , sortTalksByYear } from ' @/lib/utils' ;
9+ import { sortByDateRange , sortByYear } from ' @/lib/utils' ;
1010
1111const entry = await getEntry (' pages' , ' homepage' );
1212
@@ -17,10 +17,12 @@ if (!entry) {
1717const { Content } = await render (entry );
1818
1919const links = await getCollection (' links' );
20+
2021const jobs = await getCollection (' jobs' );
21- const sortedJobs = sortJobsByDate (jobs );
22+ const sortedJobs = sortByDateRange (jobs );
23+
2224const talks = await getCollection (' talks' );
23- const sortedTalks = sortTalksByYear (talks );
25+ const sortedTalks = sortByYear (talks );
2426---
2527
2628<BaseLayout seo ={ entry .data .seo } >
You can’t perform that action at this time.
0 commit comments