diff --git a/src/components/Breadcrumbs.vue b/src/components/Breadcrumbs.vue index 03611b5..14e7a22 100644 --- a/src/components/Breadcrumbs.vue +++ b/src/components/Breadcrumbs.vue @@ -11,17 +11,15 @@ } const breadcrumbs = computed(() => { - const items: BreadcrumbItem[] = [ - { name: 'Home', path: '/' } - ]; + const items: BreadcrumbItem[] = [{ name: 'Home', path: '/' }]; // Map route names to breadcrumb labels const routeLabels: Record = { 'blog-overview': 'Blog', 'blog-detail': 'Blog', - 'about': 'About Us', - 'contact': 'Contact', - 'privacy-policy': 'Privacy Policy' + about: 'About Us', + contact: 'Contact', + 'privacy-policy': 'Privacy Policy', }; if (route.name && route.name !== 'home') { @@ -32,7 +30,7 @@ items.push({ name: 'Blog', path: '/blog' }); // Get the post title from route meta or params if available - const postTitle = route.meta.title as string || 'Article'; + const postTitle = (route.meta.title as string) || 'Article'; items.push({ name: postTitle, path: route.path }); } else if (routeLabels[routeName]) { items.push({ name: routeLabels[routeName], path: route.path }); @@ -51,12 +49,7 @@