Create a new collection
Last updated
Last updated
A collection is like a folder that contains a group of pages. A page is like a file in your Github repository.
A collection can only exist when there is a page inside. So you must create a page in a collection.
Step 1 Create a file, which will represent a page on your site.
Step 2 Specify the folder name
A folder for a collection should always start with underscore (_). Replace spaces between words with dashes (-).
Always keep all file and folder names in small caps
Step 3 Add a forward slash to fix the folder name and set a file name.
A file name usually corresponds to your page name for easy reference.
Step 4 Specify the title and permalink of the page
You should enclose the title and permalink inside three dashes ---
Permalink should not have any spaces in between.
If you're creating a page inside a collection, you should specify in the permalink that the page is inside the folder. For example, for a page named My page
inside a folder called My New Folder
, the permalink will look like this /my-new-folder/my-page/
Step 5 Scroll to the bottom and click commit at the bottom of the page to save the file.