Kelly Mears

Frontmatter

A metadata block at the top of a text document, separated from the body by delimiters.

Data & Content2 min read203 words12 out · 7 in
also calledFront matterYAML frontmatter

Frontmatter is a block of structured metadata at the head of a text file, conventionally YAML fenced by triple dashes. It is how a plain document carries fields — title, date, tags, status — without leaving plain text.

It is the mechanism behind file-based content systems: documents in a directory, parsed at build time into records with typed fields, from which everything else is derived. Sorting, filtering, tag indexes, feeds, and structured metadata all fall out of the frontmatter rather than requiring a database. See Static Site Generation.

Designing the field set is the part that repays thought, and the useful question is what will be queried. A field exists to support a listing, a filter, a feed, or a rendering decision; one that supports none of those is a note in a structured position. Fields for search — synonyms, categories, likely queries — are worth adding deliberately rather than discovering the need for later.

The same pattern extends beyond publishing. Notes in a personal knowledge system use frontmatter as properties, agent instruction files use it for name and description, and configuration files use it as a header. In each case it is the same trade: structure where structure helps, prose everywhere else.

See also11

Markdown

A plain-text formatting syntax designed to be readable as written, now the default for technical writing.

Data & Content14 connections

Zettelkasten

A note-taking method built on small single-idea notes linked to one another.

Meaning & Society13 connections

Wiki

A collection of interlinked pages that anyone with access can edit, named for the Hawaiian word for quick.

Meaning & Society16 connections

RSS

A syndication format letting readers subscribe to a site without an intermediary.

Data & Content13 connections

Knowledge Graph

Information modeled as entities and the typed relationships between them.

Meaning & Society17 connections

Search Engine Optimization

Making content discoverable through search, most of which is ordinary quality work.

Data & Content29 connections

Structured Data

Machine-readable markup describing what a page is about, in a shared vocabulary.

Data & Content14 connections

Taxonomy

A controlled vocabulary for classifying things, and the choice between hierarchy, facets, and free tagging.

Meaning & Society34 connections

Naming

Choosing identifiers so the code states its own meaning without commentary.

Method59 connections

Blog

A website of dated posts shown newest first, named in 1997 and made easy by tools like Blogger and WordPress, which turned personal publishing into a mass habit before social networks absorbed much of it.

Web Platform9 connections

Slug

The short, readable, hyphenated part of a URL that names a page, borrowed from newsroom jargon, simple to generate and surprisingly hard to keep stable once other people link to it.

Data & Content13 connections

Linked from7