diff --git a/.env.example b/.env.example index 475501763..dbc2afb64 100644 --- a/.env.example +++ b/.env.example @@ -29,6 +29,8 @@ NUXT_FONTS_PATH= NUXT_HINTS_PATH= # Path to a local clone of github.com/nuxt/eslint (docs hosted under /modules/eslint) NUXT_ESLINT_PATH= +# Path to a local clone of github.com/nuxt/image (docs hosted under /modules/image) +NUXT_IMAGE_PATH= # ---------------------------------------------------------------------------- # Content revalidation webhook (optional — only needed to test the GitHub diff --git a/app/pages/modules/[slug]/[...path].vue b/app/pages/modules/[slug]/[...path].vue index 2ac291de3..eb2595c07 100644 --- a/app/pages/modules/[slug]/[...path].vue +++ b/app/pages/modules/[slug]/[...path].vue @@ -79,7 +79,7 @@ const breadcrumb = computed(() => { const trail = isDocsPage.value ? findBreadcrumb(docsNavigation.value, pagePath.value).map((item, index, all) => ({ label: item.title, - to: index < all.length - 1 ? item.path : undefined + to: item.page && index < all.length - 1 ? item.path : undefined })) : [] @@ -363,7 +363,13 @@ if (import.meta.server) { - +