File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed
Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 11---
22import ' @/styles/global.css' ;
33import ' @/assets/fonts/inter.css' ;
4- import type { Seo } from ' @/lib/constants' ;
4+ import { type Seo } from ' @/lib/constants' ;
55import BannerFloat from ' @/components/BannerFloat.astro' ;
66import Header from ' @/components/partials/Header.astro' ;
77import Footer from ' @/components/partials/Footer.astro' ;
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ import WorkExperience from '@/components/ui/WorkExperience.astro';
88import Talk from ' @/components/ui/Talk.astro' ;
99
1010const entry = await getEntry (' pages' , ' homepage' );
11-
12- if (! entry ) {
13- throw new Error (' Homepage content not found in src/content/pages' );
14- }
15-
1611const { Content } = await render (entry );
1712
1813const links = await getCollection (' links' );
Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
66import { DEFAULT_CONFIGURATION } from ' @/lib/constants' ;
77import PostPreview from ' @/components/ui/PostPreview.astro' ;
88
9- const entry = await getEntry (' pages' , ' posts' );
10-
11- if (! entry ) {
12- throw new Error (' Posts content not found in src/content/pages' );
13- }
9+ const entry = await getEntry (' pages' , ' writing' );
1410const posts = await getCollection (' posts' );
1511---
1612
You can’t perform that action at this time.
0 commit comments