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

Frontmatter Schema

Table of Contents

Frontmatter Schema

Reference for blog post frontmatter fields in AstroPaper.

Based on src/content.config.ts.

Required Fields

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

Optional Fields

FieldTypeDefaultDescription
featuredbooleanShow on homepage featured section
draftbooleanHide in production (visible in dev)
ogImageimage | stringCustom OG image (local or URL)
canonicalURLstringcanonicalURL is for SEO when you have duplicate content. It tells search engines “this is the original source
hideEditPostbooleanHide “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