Skip to content
DocPensieve
0.2.0-beta.1

Frontmatter

A YAML block at the top of the file, between two lines of three dashes. Everything in it is optional.

---
title: Installation
description: What you need, and how to set up a project.
date: 2026-09-09
modified: 2026-09-14
authors: [Valentin Chevoleau]
tags: [guide, installation]
preview: ./screenshot.png
draft: false
layout: doc

jsonld:
  type: TechArticle
  breadcrumbs: true
---

The fields

FieldEffect
title<title> tag, menu entry, breadcrumb, JSON-LD headline
descriptiondescription metadata and JSON-LD description
datePublication date
modifiedLast modification date. Default: the publication date
authorsList of authors
tagsKeywords, carried over as keywords
previewImage of the page. The path is resolved like a link
drafttrue keeps the page out of the output
layoutdoc (default) or home
jsonldStructured data settings

layout

doc is the documentation layout: menu on the left, table of contents on the right, content held to reading width.

home removes all three. It is what a home page expects, where columns and cards take the whole surface.

layout: home

An unknown value stops the build. A typo would otherwise render the page in a layout other than the intended one, without a word.

jsonld

jsonld:
  type: TechArticle
  breadcrumbs: true
  faq:
    - question: Do I need a frontmatter?
      answer: No, everything in it is optional.
FieldEffect
typeArticle, TechArticle or BlogPosting
breadcrumbsfalse removes the breadcrumb
faqQuestions and answers, published as FAQPage

Every faq entry must carry question and answer: if one of them is missing, the build stops and says so.

The questions must also appear in the text of the page. Search engines reject markup that describes invisible content: a FAQ present only in the frontmatter exposes the page to losing its structured data.

A type outside the list is refused the same way. This very page carries a faq: its JSON-LD contains the block.

What does not need to be written

The URL, the place in the menu, the breadcrumb and the canonical link are derived from the file path and the configuration. Nothing to repeat in the frontmatter, and nothing to keep up to date when a file is moved.

Frequently asked questions

Is the frontmatter mandatory?

No. Without a title, the project name stands in; without a date, no date is published.

How do I keep a page offline?

Set draft: true in its frontmatter. It stays in the repository, absent from the output.