Replies: 1 comment
-
|
If you need Nuxt Content page features like TOC, navigation, search sections, and MDC/Markdown parsing, I would keep the body as page content rather than treating it as a plain JSON data record. A JSON collection is good for structured data, but it will not automatically behave like a parsed Markdown page just because one property contains markdown text. The most reliable options are:
So this: {
"title": "page title",
"date": "2020-20-20",
"body": "hello\n===\n\nworld\n"
}is fine as source data, but I would convert it into markdown/page content before expecting Content features such as TOC/search/navigation. Otherwise you have data, not a Content page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to store page attributes outside of MD file and combine data and page types together.
I want to define
as something like
and get content page with toc, navigation, search and etc
Beta Was this translation helpful? Give feedback.
All reactions