Skip to content
My Blog
Go back

Getting Started with Your Blog

Welcome to your new blog! This post will help you get started with creating content and customizing your site.

Table of contents

Open Table of contents

Writing Your First Post

Create a new .md file in the src/data/blog/ directory. Each post needs frontmatter at the top with metadata like title, description, tags, and publish date.

Frontmatter Fields

FieldRequiredDescription
titleYesPost title
descriptionYesShort description for SEO and cards
pubDatetimeYesPublish date in ISO format
authorNoAuthor name (defaults to site config)
featuredNoShow in featured section on homepage
draftNoHide from published posts
tagsNoArray of tag strings

Customizing Your Site

Edit src/config/site.ts to change your site’s name, description, author info, social links, and navigation. All user-facing text is centralized in this single file.

Adding Images

Place images in the public/ directory and reference them in your posts:

![Alt text](/your-image.jpg)

Or use the src/assets/ directory for optimized images that Astro will process at build time.

Tags

Tags help organize your content. Add them to your frontmatter as an array. The tags page at /tags/ will automatically list all tags and their post counts.

Happy writing!


Share this post on:

Previous Post
Why I Build in Public
Next Post
Markdown Style Guide