Nuxt Content v3-alpha has been released!

Try it out
Composables

fetchContentNavigation()

The fetchContentNavigation utility returns a tree of items based on the content/ directory structure and files.

Usage

<script setup>
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
</script>

<template>
  <pre>{{ navigation }}</pre>
</template>

Arguments

  • queryBuilder
    • Type: QueryBuilder
    • Definition: Any query built via queryContent()
    • Default: /