For more information on how to use the preview path, see the preview configuration section.
Page and leaf bundles
The page or leaf bundles, are a way to group your pages and resources together in a single folder.
content/ ├── about │ ├── index.md ├── posts │ ├── leaf-bundle │ │ ├── image1.jpg │ │ ├── image2.png │ │ └── index.md │ └── leaf-bundle │ └── index.md │ └── another-section ├── .. └── leaf-bundle └── index.md
In the above section you can see the
leaf-bundle folders. These bundles consist of a
index.md file and possibly also the resouces related to it like images.
By default, Front Matter will create individual Markdown files, but you can also create a leaf bundle. In order to do so, you need to set the
pageBundle property in your content type to
Here is an example of configuring the page bundles for the
default content type:
Creating a template
To make sure that your type of content is already defined when creating a new Markdown file. It will be easier to set the type of content within a template.
You can create Markdown templates in your project's
.frontmatter/templates folder (or defined differently).
If you already have an existing page, you can automatically create a template from it by running the
Front Matter: Create a template from the current file command.
The create template command will ask you the template's name and if you want to include the content. The front matter data is included by default.
Preserve casing of file names
When you create a new page, the file name will be created based on the sanitized
title property. During the sanitization, the
title property will be converted to lowercase and all spaces will be replaced with dashes.
If you want to preserve the casing of the file name, you can set the
frontMatter.file.preserveCasing setting to