Skip to content

Commit c6461e0

Browse files
committed
fix: minor improvements
1 parent 2d1244e commit c6461e0

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import '@/styles/global.css';
33
import '@/assets/fonts/inter.css';
4-
import type { Seo } from '@/lib/constants';
4+
import { type Seo } from '@/lib/constants';
55
import BannerFloat from '@/components/BannerFloat.astro';
66
import Header from '@/components/partials/Header.astro';
77
import Footer from '@/components/partials/Footer.astro';

src/pages/index.astro

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import WorkExperience from '@/components/ui/WorkExperience.astro';
88
import Talk from '@/components/ui/Talk.astro';
99
1010
const entry = await getEntry('pages', 'homepage');
11-
12-
if (!entry) {
13-
throw new Error('Homepage content not found in src/content/pages');
14-
}
15-
1611
const { Content } = await render(entry);
1712
1813
const links = await getCollection('links');

src/pages/writing/index.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
66
import { DEFAULT_CONFIGURATION } from '@/lib/constants';
77
import 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');
1410
const posts = await getCollection('posts');
1511
---
1612

0 commit comments

Comments
 (0)