Data Files
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).
Datafile Sections
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 match
and new_doc_ext
options to configure a sidebar section that operates exclusively on data files.
Customizing Fields
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”
Futher Reading
Caught a mistake or want to contribute to the docs? Edit this page on Github!