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:
/
- Type: