---
title: Starting Here
description: A sample post explaining how to write, add local images, and publish with Markdown.
pubDatetime: 2026-07-29T21:00:00+08:00
tags:
  - Blog
  - Astro
draft: false
featured: true
lang: en
translationKey: hello-world
---

Welcome to **Yuwx's Blog**.

This first sample post is also a compact writing guide. Posts are Markdown files; once they are committed, Cloudflare Pages builds and publishes the site automatically.

## Write a new post

Create an English slug under `src/content/posts/en/` and add an `index.md`:

```text title="Post directory"
src/content/posts/en/my-first-post/
├── index.md
└── cover.jpg
```

Keep images beside the post and reference them with relative paths:

```markdown
![Image description](./cover.jpg)
```

Astro will include and optimize those images during the build, so an external image host is unnecessary.

## Publish

1. Set the title, description, publication time, tags, and language.
2. Preview the draft locally.
3. Change `draft` to `false`.
4. Commit and push to `main`.

After a successful build, the post appears on the home page, post list, tags, search, RSS feed, and sitemap.
