For Hugo sites, Collections consist of top-level content sections.
To get started:
To create a new collection item:
Your new file is opened in the Content Editor. Front matter for the file is populated from Collection Defaults (see below) or an existing item to keep the structure consistent.
You can then edit your content by:
Provide default front matter and/or content for new drafts and collection documents. Defaults for collection document files are copied from
_defaults.md in the root collection folder. Default files are hidden in the Explore section to prevent changes from editors.
Set the default extension for new files to
.html by using
/_staff/_defaults.mdcontains defaults for new staff members
/_posts/_defaults.mdcontains defaults for new draft posts
New items created use these values. If the
name attributes are present, they are set to the name used when a user creates a file.
Looking to set the default values for new array items? Use Array Structures instead.
CloudCannon renames blog post files automatically when the front matter
title is changed, to keep filenames, titles, and URLs consistent. If you wish to disable this behavior, set the following for each post in your front matter: