Adding a collection
-
Define a collection in
_config.ymlin the collections section.Recommended settings:
collections_dir: reference collections: <COLLECTION_NAME>: output: true permalink: /docs/:collection/:name/See the Jekyll Collections documentation for more YAML settings.
- Create a folder in the
~/reference/folder. The folder name must begin with an underscore, as in_<COLLECTION_NAME>. - Add .md files to the collection folder.
- Update the
reference/page.- Change the
last_modified_dateYAML tag to the appropriate date. - Add the new collection to the folder structure section.
- Add a new section with the collection name and description.
- Change the
You can access the files in a collection through the tag site.<COLLECTION_NAME>.