• Documentation
  • Playground
  • Templates
  • Releases
InstallationConfigurationEdge ChannelMigration
Content DirectoryMarkdownJSON, YAML, CSVRender ContentSearchFetch NavigationTypeScript Support
queryContent()fetchContentNavigation()useContentHead()useContentHelpers()useUnwrap()searchContent()
<ContentDoc><ContentRenderer><ContentList><ContentNavigation><ContentQuery><ContentSlot>Prose Components
IntroductionuseContent()
HooksTransformersSitemap
Document Driven

useContent()

The useContent() composable gives access to the current page, surrounding pages and global data.


Introduction

The Document-driven mode gives a lot more power to Markdown-based websites.

Hooks

Nuxt Content exposes hooks to allow you to modify the content before it is parsed and after it is parsed.

  • Rendering the page
  • Previous/next page component
  • Table of Contents component

Community

Edit this page Star on GitHub Chat on Discord Become a Sponsor Nuxt docs

Ecosystem

Nuxt Studio
  • Documentation
  • Playground
  • Templates
  • Releases
Published under MIT License