Front matter elements are the components you can use to customize the top section of your pages or blog posts. They are placed in the top section of a file between two sets of three dashes (—).
Generally, front matter elements add SEO and SEO tracking details, and authorship information as well as meta data such as permalinks and tags.
Front matter elements can also be used to specify the layout or styling information for a page or blog post.
To use front matter elements, you will need to use a specific language for writing the elements. Commonly used languages for writing this element include YAML, JSON, TOML.
Here are some common front matter elements:
• Title: Used to inform search engines and readers what the page/post title is
• Date: Used to provide the date that the page/post was published
• Permalink: Used to provide the uniform resource locator (URL) that is used to link to the page/post
• Layout: Used to specify the layout or styling of the page/post
• Categories: Used to set the category that the page/post belongs to
• Tags: Used to specify the tags related to the page/post
• Author: Used to specify the author of the page/post
These are just some of the elements that can be used in front matter. For more in-depth information about the different front matter elements available, you can refer to this article from the Hugo website: https://gohugo.io/content-management/front-matter/