Stedefast

Content

Front Matter

1 min read

Every Markdown file starts with YAML front matter between --- delimiters.

Base fields (all types)

Field Type Required Description
title string yes Page title
slug string URL slug (derived from filename if absent)
date date Publication date
updated date Last updated date
draft boolean Set true to exclude from build (default: false)
tags string[] Tags, used for /tags/:tag/ listing pages
description string Short description, used in RSS and meta tags
image string Cover image path or URL
template string Override the template name
layout string Override the layout name

Draft content

Files with draft: true are excluded from builds by default.

To include drafts in a build, set the environment variable:

STEDEFAST_INCLUDE_DRAFTS=true stedefast build