Markup - front matter

> Markup Language (ML)

1 - About

Front matter allows to define metadata inside a markup document

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

3 - Syntax

It can be defined in:

Advertising

3.1 - 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
---

3.2 - 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 !"
+++

3.3 - 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",
   "title": "Front matterrrrrrsssssss !!!!!!!"
}

4 - Library

markup/front-matter.txt · Last modified: 2019/08/15 11:43 by 162.158.106.214