summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-27 11:48:57 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-27 11:48:57 +0100
commitd5d8a461f0ee8abdd5f19a6f5a7a288b1f025724 (patch)
tree3dc071692baed3889e153d8fca37119a0d5c38c5 /src/utils
parente9c68e4b3ddcfe638bc611f421d55f372e0100e9 (diff)
chore: update project preview appearance
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/helpers/projects.ts6
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);