diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-29 23:00:54 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-29 23:00:54 +0100 |
| commit | 657d11ce72c905832b9b169354352f521f42207a (patch) | |
| tree | 56ad60f1ea03e9c22d2376c0275038b389eb710a /src/pages | |
| parent | 4d858de0eae41b68af0e631629d0fc1015d16803 (diff) | |
fix: set current project title in breadcrumb
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/projet/[slug].tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/projet/[slug].tsx b/src/pages/projet/[slug].tsx index 14ddf9c..f44d810 100644 --- a/src/pages/projet/[slug].tsx +++ b/src/pages/projet/[slug].tsx @@ -131,11 +131,11 @@ interface ProjectParams extends ParsedUrlQuery { export const getStaticProps: GetStaticProps = async ( context: GetStaticPropsContext ) => { - const breadcrumbTitle = ''; const { locale } = context; const translation = await loadTranslation(locale); const { slug } = context.params as ProjectParams; const project = await getProjectData(slug); + const breadcrumbTitle = project.title; return { props: { |
