Frontmatter
You can add front matter at the beginning of your Markdown file. It is a YAML block wrapped by the three dashes --- and is used to define metadata.
For example, use title to specify the title of the page. By default, the page's h1 heading will be used as the title of the HTML document. If you want to use a different title, you can use front matter to specify the title of the page:
You can also use description to specify a custom page description. By default, Rspress extracts the first contentful paragraph below the h1 heading as the description (see How description is determined). If the extracted result does not meet your needs, you can override it:
For example, you can use head to specify custom meta tags for Open Graph.
See Front matter config for available front matter configurations, and see useFrontmatter for how to access front matter in code.