1
0
Fork 0

feat(shared): Modal for all MDX and Strapi content

This commit is contained in:
Joost De Cock 2022-05-31 14:47:34 +02:00
parent 39dd5ebaa2
commit 0b40f6f347
9 changed files with 84 additions and 42 deletions

View file

@ -106,7 +106,7 @@ function useApp(full = true) {
/*
* Helper method to construct breadcrumb from navigation structure
*/
const getBreadcrumb = slug => ({ title: get(navigation, slug).__title, slug })
const getBreadcrumb = slug => ([ get(navigation, slug).__title, `/${slug}` ])
return {
// Static vars