fetchContentNavigation()
The fetchContentNavigation utility returns a tree of items based on the content/ directory structure and files.
Usage
Directory structure
content/
index.md
sub-folder
about.md
Read more in Examples > Navigation > Fetch Content Navigation.
Arguments
queryBuilder
- Type:
QueryBuilder
- Definition: Any query built via
queryContent()
- Default:
/
- Type: