Lakshit Farswan

Home / Blogs / Hello World

Hello World

This is a placeholder post. It exists to prove the blog renders end to end — replace it or delete the folder.

Adding a post

Create site/src/content/blog/<slug>/index.md with the frontmatter above. The folder name becomes the URL: this file is /blogs/hello-world/.

Images go in the same folder and are referenced relatively. Astro optimises them at build time — this one below is a real file sitting next to this markdown, not a URL:

An example image, stored alongside this post

Frontmatter

Field Required Notes
title yes
description yes Shown in the list and in RSS.
pubDate yes YYYY-MM-DD.
tags no Defaults to []. Drives the tag chips on /blogs.
draft no Defaults to false. true keeps it out of the build entirely.

Inline code, links, and blockquotes all work as expected:

Set draft: true to keep a post out of the build while you write it.