Front matter in staticsite1 is arbitrary key/value data stored in JSON, YAML, or toml format.
It is the way used to add metadata in markdown, data, and jinja2 pages.
If metadata starts with ---
, it is read as YAML. If it starts with +++
it
is read as TOML. If it starts with {
, it is read as JSON.
For documentation on possible metadata contents, see Common page metadata
---
title: Page with metadata in YAML format
---
page contents
{% block front_matter %}
{
"title": "Page with metadata in JSON format"
}
{% endblock %}
{% block content %}
...
{% endblock %}
+++
title = "Page with metadata in TOML format"
Inspired from Hugo front matter