I am trying to work out from the documentation, various posts and having asked @elementsbot (before he gave up on me with an “Unable to decode into a valid UTF-8 string” error) , what the definitive definition of the Elements CMS Frontmatter is.
@elementsbot had suggested this:
---
title: "Epic Photo Post"
date: "2025-07-10 12:00"
author: Alex
categories: [photography, cats]
tags: [gallery, example, images]
status: published
featured: true
image:
src: /images/featured-cat.jpg
alt: "The star of the gallery"
type: resource
gallery:
- src: /images/cat1.jpg
alt: "Cat sleeping"
- src: /images/cat2.jpg
alt: "Cat playing"
---
Welcome to my epic cat gallery. Enjoy every whisker!
It was also suggested that if there was only one category, you could use:
category: photography
It would be very useful to have the tags identified that must be present for the CMS to work (in a meaningful way) e.g. title, date, author etc.
Also, to have the individual tags documented so that we know the values / formats to use for e.g. date, status, image type etc.
Has @elementsbot got the above list correct, is anything missing; the tag feature_image was mentioned for example.
One tag that Alloy uses in its Frontmatter is:
summary: |
A description of the post
Note: In alloy the summary tag is followed by two spaces and a vertical separator, before starting the description on the following line. It was also the last entry in the Alloy Frontmatter and so was effectively terminated by the three dashes of the Frontmatter end, although (untested) I guess it could be terminated by the presence of another tag?
Is there an official CMS tag for summary or should it be a custom tag and if so how should multiple lines of text be handled?
What are the rules (if any) for custom tags e.g could I have a custom tag of published_date?