Home

Issue: 1589

List of siblingPages, parentPage, etc

[issue link]

Hello,

it would be nice if nuxt could somehow expose the list of available siblingPages, parentPages, nextPage, prevPage to make it easy to build a navigation or a breadcrumb based on the pages directory. Since nuxt is walking through the pages directory anyway, I don’t think it will add much overhead (if any) to expose this information somewhere, possibly on the router object.

Proposal:

Next Page: <nuxt-link :to="$router.nextPage.path">{{ $router.nextPage.name }}</nuxt-link>

Cheers,
Stefan

This question is available on Nuxt.js community (#c1418)