Editing / Editors

Data Editor

The Data Editor is a group of input fields. The inputs shown are dependent on your keys and values. See Inputs for a list of choices to tune the experience.

Create any YAML or JSON file in the _data directory (configurable in _config.yml as data_dir). Use them to separate content from source code. The use cases for data files include: office locations, restaurant menus, staff members and opening hours.

/_data/staff.yml:

- name: George Phillips
  email: george@cloudcannon.com
- name: Mike Neumegen
  email: mike@cloudcannon.com
- name: Ross Phillips
  email: ross@cloudcannon.com

/_data/staff.json:

[
  {
    "name": "George Phillips",
    "email": "george@cloudcannon.com"
  },
  {
    "name": "Mike Neumegen",
    "email": "mike@cloudcannon.com"
  },
  {
    "name": "Ross Phillips",
    "email": "ross@cloudcannon.com"
  }
]

YAML/JSON interface

arrow_back

Editors / Front Matter

Read previous doc
arrow_forward

Editors / CSV Editor

Read next doc