Skip to content
Yuwx's Blog
Go back

Starting Here

View Markdown阅读中文版

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:

src/content/posts/en/my-first-post/
├── index.md
└── cover.jpg

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

![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.


Share this post: