summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-07 15:59:48 +0200
committerArmand Philippot <git@armandphilippot.com>2022-06-07 17:13:29 +0200
commitd54fc38899b3ffc87104ed03f5e48be3f02e337c (patch)
tree233df552fb67f5fab7a14eae339918743cd07d5f /src/utils
parentac79a48c07c538316949d6284bc5d9c0eb2e3f91 (diff)
chore: use image title as figure label if no caption is provided
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/helpers/projects.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/helpers/projects.ts b/src/utils/helpers/projects.ts
index a0f0c04..88f4516 100644
--- a/src/utils/helpers/projects.ts
+++ b/src/utils/helpers/projects.ts
@@ -46,6 +46,7 @@ export const getProjectData = async (
...cover.default,
alt: `${title} image`,
src: `/projects/${filename}.jpg`,
+ title,
},
},
slug: filename,