Data files are pieces of content that don’t belong to a specific page or piece of content. They are commonly used for managing content like social media handles and links, contact information, and branding (e.g, logo images and site colours).
You can configure access to data files with Sidebar Sections, explicitly adding them to the sidebar like the rest of your content. In this case, your Sidebar Configuration will display the data editing UI for JSON, YAML, and TOML files instead of the default content UI. You can use the
new_doc_ext options to configure a sidebar section that operates exclusively on data files.
You can also apply Front Matter Templates to your data files, allowing configuration of the fields that are displayed in the CMS. To do so, navigate to the Data File you want to customize:
- Click the settings button in the top right, next to the “Save” button
- Click “Change Template”
- Choose the Front Matter Template you want and click “Done”
Caught a mistake or want to contribute to the docs? Edit this page on Github!