Skip to content

Frontmatter Reference ​

Every Markdown (.md) or MDX (.mdx) file in content/ starts with a YAML frontmatter block enclosed by ---. All four content types require a title. Posts also require a publication date in date, published, or pubDatetime.

Shared Fields (All Four Content Types) ​

These fields work across posts, pages, categories, and tags:

FieldTypeDefaultDescription
titlestring(Required)Display title of the post, page, category, or tag.
slugstringFilename / folder nameCustom URL slug (without locale suffix).
descriptionstring''Short summary used in list previews, search results, and SEO <meta> tags.
image / coverstring—Cover image path (relative bundle path like ./cover.jpg or root path /img/cover.jpg).
coverStyle'thumbnail' | 'fade' | 'background'Site defaultVisual style when rendering the cover image in cards and headers.
draftbooleanfalseWhen true, excludes the entry from production builds (pnpm build).
hiddenbooleanfalseKeeps the page accessible by direct URL while hiding it from lists and navigation.
mathbooleanarticle.mathEnable or disable KaTeX math rendering for this specific entry.
mermaidbooleanarticle.mermaidEnable or disable Mermaid diagram rendering for this specific entry.
lightboxbooleanarticle.lightboxEnable or disable image zoom/lightbox for this specific entry.
calloutsbooleanarticle.calloutsEnable or disable GitHub-style callout blocks for this specific entry.
tocbooleanarticle.toc.enabledShow or hide the table of contents for this specific entry.
shareCoverbooleanarticle.shareCover.enabledEnable or disable automatic Open Graph cover generation for this entry.
displayPartial<ArticleDisplay>article.displayOverride visibility of metadata elements (author, published, readingTime, updated, tags, share, navigation, title).

Date Fields (Posts & Pages) ​

To make migrating from other blog frameworks painless, BlogGPT accepts common aliases for publication and update dates:

FieldAccepted AliasesDescription
datepublished, pubDatetimePublication date, required for posts and optional for standalone pages (YYYY-MM-DD or ISO 8601 timestamp). Priority: date > published > pubDatetime.
updatedmodDatetime, lastmodLast modified date. Priority: updated > modDatetime > lastmod.

Post-Specific Fields (content/posts/) ​

FieldTypeDefaultDescription
categories / categorystring | string[][]One or more category slugs (e.g., [tech, astro]).
tagsstring | string[][]One or more tag slugs (e.g., [guide, markdown]).
featuredbooleanfalsePins the post to the featured section in the sidebar and home view.

Complete Example ​

yaml
---
title: Hello World
slug: hello-world
date: 2026-03-29
updated: 2026-04-02
description: A quick tour of BlogGPT frontmatter options and Markdown features.
categories: [general]
tags: [intro, bloggpt]
featured: true
image: ./cover.webp
math: true
mermaid: true
---

BlogGPT · Documentation