Trang này chưa có bản dịch Tiếng Việt. Bạn đang xem bản gốc (English).

Binding Data

Using the data binding feature from Nuxt Content, you can bind data within your Markdown document using the {{ $doc.variable || 'defaultValue' }} syntax. This allows you to define these values in the YAML frontmatter at the top of the document, or through the global variable in docs.config.ts.

Document variable in YAML frontmatter

Global Variable in docs.config.ts