Open navClose nav

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.

For more information on how to configure the sidebar for data files, view our Sidebar Configuration documentation.

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:

  1. Click the settings button in the top right, next to the “Save” button
  2. Click “Change Template”
  3. Choose the Front Matter Template you want and click “Done”

Futher Reading

Last updated on May 25, 2018