Markup - front matter

Front matter allows to define metadata inside a markup document

Front matter (or preliminaries; shortened to “prelims”) is the first section of a book.

Syntax

It can be defined in:

Yaml

The front matter is generally the first thing in the file and must take the form of valid YAML set between triple-dashed lines.

---
layout: post
title: Blogging Like a Hacker
---


Toml

identified by opening and closing +++

+++
tags= ["Front-matter", "Book"]
date = "2019-06-12"
description = "An article about front-matter"
slug = "/the/slug/front-matter"
title = "Front matters !"
+++


JSON

a single JSON object followed by a new line.

{
"tags": [
"front-matter",
"book"
],
"date": "2019-06-12",
"description": "front-matter is the first section of a book",
}