Skip to content
Le blog de Pascal Andy - L'homme et les relations technologiques

Frontmatter Schema

Frontmatter Schema

Reference for blog post frontmatter fields in AstroPaper.

Based on src/content.config.ts.

Required Fields

FieldTypeFormatDescription
titlestring—Post title
tagsstring[]—Post tags (min 1, use untagged if none)
date_createddate2026-01-11Publication date
authorstring—Post author (default: Pascal Andy)
descriptionstring—SEO meta + post cards (not shown in body)

Optional Fields

FieldTypeDefaultDescription
featuredboolean—Show on homepage featured section
draftboolean—Hide in production (visible in dev)
ogImageimage | string—Custom OG image (local or URL)
canonicalURLstring—canonicalURL is for SEO when you have duplicate content. It tells search engines “this is the original source
hideEditPostboolean—Hide “Edit post” link
mermaidbooleanfalseEnable Mermaid diagram rendering

Examples

Minimal (5 required fields)

(in this order by default)

---
title: "My Post Title"
tags:
  - untagged
date_created: 2025-01-15
author: Pascal Andy
description: "Brief description for SEO and cards"
---

Full (all fields)

---
title: "My Post Title"
tags:
  - astro
  - tutorial
date_created: 2025-01-15
author: "Your Name"
featured: true
draft: false
ogImage: "./custom-og.png"
canonicalURL: "https://original-source.com/post"
hideEditPost: false
mermaid: true
description: "Brief description for SEO and cards"
---

Notes