diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 1f99883..5bced5e 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -13,7 +13,7 @@ export async function getStaticProps() { return { props: { meta: { - title: frontmatter.title, + title: (frontmatter as { title?: string }).title || '', }, source, }, diff --git a/src/pages/projects.tsx b/src/pages/projects.tsx index bddfee4..8a9976b 100644 --- a/src/pages/projects.tsx +++ b/src/pages/projects.tsx @@ -14,7 +14,7 @@ export async function getStaticProps() { return { props: { meta: { - title: frontmatter.title, + title: (frontmatter as { title?: string }).title || '', }, source, }, diff --git a/src/pages/publications.tsx b/src/pages/publications.tsx index 04312f3..89cd7e5 100644 --- a/src/pages/publications.tsx +++ b/src/pages/publications.tsx @@ -15,7 +15,7 @@ export async function getStaticProps() { return { props: { meta: { - title: frontmatter.title, + title: (frontmatter as { title?: string }).title || '', }, source, }, diff --git a/src/pages/research.tsx b/src/pages/research.tsx index 7325a12..0f5735f 100644 --- a/src/pages/research.tsx +++ b/src/pages/research.tsx @@ -13,7 +13,7 @@ export async function getStaticProps() { return { props: { meta: { - title: frontmatter.title, + title: (frontmatter as { title?: string }).title || '', }, source, },