From 86e9f4a7563b072bfeda6ecac530f2e8c9dd6fb5 Mon Sep 17 00:00:00 2001 From: Roman Koshkin Date: Tue, 9 Apr 2024 20:40:59 +0900 Subject: [PATCH] fixes --- src/pages/about.tsx | 2 +- src/pages/projects.tsx | 2 +- src/pages/publications.tsx | 2 +- src/pages/research.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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, },