Solitude Docs

Front matter

Manage posts and pages with front matter.

Put posts in src/content/posts/ and pages in src/content/pages/; subdirectories are supported. Use .md for ordinary posts and .mdx for components.

Fields

---
title: A new beginning
date: 2026-09-11T10:00:00Z
lastmod: 2026-09-12T09:00:00Z
description: A short summary.
slug: a-new-start
cover: /img/demo/cover-getting-started-v2.webp
categories: [Life]
tags: [Notes, Astro]
series: [Everyday stories]
home: true
draft: false
sticky: 2
comment: true
aside: true
toc: true
---
FieldDefault / requiredBehavior
titleRequiredPage title
dateRequired for posts; optional for pagesPublication date; include a time zone
lastmodOptionalLast modification date
descriptionOptionalSummary and page description
slug / urlOptionalCustom path; see below
aliases[]Additional old URLs that generate redirect pages
coverOptionalCover image; otherwise the theme chooses a default
categories / tags / series[]Arrays of category, tag, and series names
hometruefalse hides the post only from homepage areas
draftfalseVisible in development; excluded from production
stickyfalsetrue equals weight 1; larger numeric weights appear first on the homepage
commenttrueAllow comments when a global service is configured
aside / toctrueSidebar and table of contents; some special layouts omit the sidebar
randomtrueInclude in random post selection
not_coverOptionalOmit the large article cover layout
typeOptionalPage type; see the Pages guide

Posts with home: false remain accessible through direct URLs, archives, search, and RSS. Drafts are excluded from production. A future date does not schedule publication: a post without draft: true is published on the next build.

Post URLs · Media and math