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 _defaults.html
instead.
For example:
/_staff/_defaults.md
contains defaults for new staff members/_posts/_defaults.md
contains defaults for new draft postsNew items created use these values. If the title
and 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:
_disable_title_filename_sync: true
_disabled_title_filename_sync = true