diff options
Diffstat (limited to 'src/utils/helpers/projects.ts')
| -rw-r--r-- | src/utils/helpers/projects.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/helpers/projects.ts b/src/utils/helpers/projects.ts index 12e5912..1612dae 100644 --- a/src/utils/helpers/projects.ts +++ b/src/utils/helpers/projects.ts @@ -10,27 +10,27 @@ import path from 'path'; export const getProjectData = async (id: string): Promise<Project> => { try { const { - image, intro, meta, seo, + tagline, }: { - image: string; intro: string; meta: ProjectMeta & { title: string }; seo: { title: string; description: string }; + tagline?: string; } = await import(`../../content/projects/${id}.mdx`); const { title, ...onlyMeta } = meta; return { id, - cover: image || '', intro: intro || '', meta: onlyMeta || {}, slug: id, title, seo: seo || {}, + tagline: tagline || '', }; } catch (err) { console.error(err); |
