Skip to content

Get Front-Matter Content #1066

Answered by NozomuIkuta
heychazza asked this question in Q&A
Discussion options

You must be logged in to vote

@heychazza

I've not yet tried Nuxt Content v2 deeply, but here are some information for you based on my source code reading.
I hope this helps you somehow.

First, Nuxt Content v2 seems to have content.navigation.fields option that let you define what fields of documents to fetch when it creates navigation items to fetch.

content/src/module.ts

Lines 138 to 145 in bc67b77

/**
* Enable/Disable navigation.
*
* @defaul {}
*/
navigation: false | {
fields: Array<string>
}

export function createNav (contents: ParsedContentMeta[], configs: Record<string, ParsedCont…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@heychazza
Comment options

Answer selected by heychazza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants