@@ -9,6 +9,11 @@ import Talk from '@/components/ui/Talk.astro';
99import { sortJobsByDate } from ' @/lib/utils' ;
1010
1111const entry = await getEntry (' pages' , ' homepage' );
12+
13+ if (! entry ) {
14+ throw new Error (' Homepage entry not found' );
15+ }
16+
1217const { Content } = await render (entry );
1318
1419const links = await getCollection (' links' );
@@ -18,11 +23,11 @@ const talks = await getCollection('talks');
1823---
1924
2025<BaseLayout seo ={ entry .data .seo } >
21- <Container as =' section' class =' py-6' >
26+ <Container as =" section" class =" py-6" >
2227 <Author {... DEFAULT_CONFIGURATION .author } />
2328 </Container >
2429
25- <Container as =' section' class =' py-6' >
30+ <Container as =" section" class =" py-6" >
2631 <div class =" flex flex-col gap-6" >
2732 <div class =" flex items-center" >
2833 <span class =" text-headings" >About</span >
@@ -34,7 +39,7 @@ const talks = await getCollection('talks');
3439 </Container >
3540 {
3641 links .length > 0 && (
37- <Container as = ' section' class = ' py-8' >
42+ <Container as = " section" class = " py-8" >
3843 <div class = " flex flex-col gap-5" >
3944 <span class = " text-headings" >Contact</span >
4045 <ul class = " flex flex-col gap-3" >
@@ -62,7 +67,7 @@ const talks = await getCollection('talks');
6267 }
6368 {
6469 sortedJobs .length > 0 && (
65- <Container as = ' section' class = ' py-6' >
70+ <Container as = " section" class = " py-6" >
6671 <div class = " flex flex-col gap-5" >
6772 <span class = " text-headings" >Work Experience</span >
6873 <ul class = " flex flex-col gap-8" >
@@ -76,7 +81,7 @@ const talks = await getCollection('talks');
7681 }
7782 {
7883 talks .length > 0 && (
79- <Container as = ' section' class = ' py-6' >
84+ <Container as = " section" class = " py-6" >
8085 <div class = " flex flex-col gap-5" >
8186 <span class = " text-headings" >Speaking</span >
8287 <ul class = " flex flex-col gap-8" >
0 commit comments