Skip to content
Astro Flightdeck
Start free

Docs · Content

Posts

Writing a post, its fields, the covers the theme draws, tags, comments and the reading bar.

All docs pages
On this page
  1. The fields
  2. The blog pages
  3. Comments

Posts are .md or .mdx files in src/content/blog/<language>/. The file name is the address: src/content/blog/en/my-post.md is /blog/my-post/.

The fields

---
title: My first post
description: One sentence for the card, the page and search engines.
publishedAt: 2026-11-29
author: Your name
tags: ['Astro', 'Design']
category: writing
cover: first post
icon: pen-line
---

Besides Velocity’s fields (title, description, publishedAt, updatedAt, author, tags, image, imageAlt, featured, draft), a post takes:

Field What it does
category product, engineering or writing. It sets the colour of the drawn cover: product in the site’s colour, engineering emerald, writing magenta.
cover The word on the drawn cover. Without it, the category’s name.
icon The icon above that word: a Lucide name, or a brand mark such as brand-astro. Without it, the category’s icon.
comments false hides the comments on this post.

With an image, the post shows that picture instead of the drawn cover.

The blog pages

The blog shows the featured posts first, then the others, twelve to a page. Each tag has its own page, /blog/tag/<tag>/. A post has a table of contents beside the text (above it on a phone), share buttons, its tags, the newsletter signup and related posts: those that share a tag with it. The blog has an RSS feed at /rss.xml.

The reading bar along the top of a post is readingProgress in the settings.

The demo’s five posts describe the theme. Getting started with Astro Flightdeck is the one the blog’s closing band links to; replace the posts with your own, and point that link in src/views/BlogIndexView.astro and src/layouts/BlogLayout.astro at a post of yours.

Comments

comments in src/config/theme.config.mjs turns them on, from Giscus (on GitHub Discussions) or Artalk (on your own server):

comments: {
  enabled: true,
  provider: 'giscus',
  giscus: { repo: 'you/your-repo', repoId: '…', category: 'Comments', categoryId: '…' },
},

The values for Giscus come from giscus.app. The comments load when a reader comes near them. With comments on, the privacy page adds a section about the provider.