Available for Jekyll sites.
Create and manage Jekyll data files in CloudCannon.
Data files are YAML, JSON or CSV files located in the /_data
directory. Use them to separate content from source code.
The use cases for data files include: office locations, restaurant menus, staff members and opening hours.
The Content Editor is an easy-to-use editor that supports data files. To access the interface:
- Add a Jekyll site with at least one data file
- Open the file from Collections / Data section
Developers have access to the raw contents with the Source Editor.
The editor adapts to the type of data file opened:
CSV
A spreadsheet-like interface.
/_data/offices.csv
:
YAML and JSON
Group of input fields, similar to Front Matter.
/_data/staff.yml
:
/_data/staff.json
: