Skip to content
Astro Rocket
Get in touch

Docs · Content

Posts

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

All docs pages

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 all posts, 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, 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.

Comments

comments in src/config/aurora.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. Mention the provider on your privacy page; the demo’s privacy text has a section for it.