From d5d8a461f0ee8abdd5f19a6f5a7a288b1f025724 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Jan 2022 11:48:57 +0100 Subject: chore: update project preview appearance --- src/utils/helpers/projects.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') 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 => { 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); -- cgit v1.2.3