DEV Community

Discussion on: The Perfect Breadcrumbs (in Nuxt)

Collapse
bastianhilton profile image
Sebastian hilton
I took it a step further for my cms i'm building by adding a dynamic page title underneath my breadcrumbs by adding your code like this:

<h2 v-for="(crumb, index) in crumbs" :key="index" property="itemListElement" typeof="ListItem" class="breadcrumb-item pageTitle">{{$route.fullPath === crumb.path && title !== null ? title : crumb.title}}</h2>
Enter fullscreen mode Exit fullscreen mode