We can save some effort in managing our collection by defining front matter defaults. This saves having to copy and paste common properties in every item’s front matter.
Step 1: Define a Default Layout for your collection
- In the _config.yml add a new “defaults” object
- under defaults add an array item (-)
- in the array item, define properties:
defaults:
- scope:
path: ""
type: "connecttech2018"
values:
layout: "default"
title: Connect Tech 2018
permalink: /:collection/:title
Save and Commit your changes.
Working Locally?
Don't forget to restart to pick up _config.yml changes.
While We Wait
What are Permalinks?
permalink is a built-in variable that Jekyll will use to create paths for your content. It has a placeholder syntax and helps with SEO to make your URIs easy to navigate.
Explore: How has your collection's URL changed?
Navigate to /connecttech2018 or /connecttech2018/ are you redirected?