Categories

Front Matter in VuePress

# Front Matter in VuePress

Any markdown file that contains a YAML front matter block will be processed by gray-matter. The front matter must be the first thing in the markdown file and must take the form of valid YAML set between triple-dashed lines. Here is a basic example:

Markdown Slot

# Markdown Slot

VuePress implements a content distribution API for Markdown. With this feature, you can split your document into multiple fragments to facilitate flexible composition in the layout component.

Writing a VuePress theme

# Writing a VuePress theme

To write a theme, create a .vuepress/theme directory in your docs root, and then create a Layout.vue file:

.
└─ .vuepress
   └─ `theme`
       └─ Layout.vue

From there it's the same as developing a normal Vue application. It is entirely up to you how to organize your theme.