mobile wallpaper 1
mobile wallpaper 2
mobile wallpaper 3
mobile wallpaper 4
201 words
1 minute
Writing a Blog Post
2024-04-01

This blog template is built with Astro. This article is a small, generic example of the file structure and common frontmatter used by a post. The complete current schema and Markdown syntax are maintained in the Content Authoring Guide.

Common frontmatter#

---
title: "An Example Article"
published: 2026-08-01
updated: 2026-08-08
description: "A short summary for previews."
image: ./cover.webp
tags: [Example, Guide]
category: Guides
draft: false
comment: true
---
AttributeDescription
titleThe title of the post.
publishedThe date the post was published.
pinnedWhether this post is pinned to the top of the post list.
priorityThe priority of the pinned post. Smaller value means higher priority (0, 1, 2…).
descriptionA short description of the post. Displayed on index page.
imageThe cover image path of the post.
1. Start with http:// or https://: Use web image
2. Start with /: For image in public dir
3. With none of the prefixes: Relative to the markdown file
tagsThe tags of the post.
categoryThe category of the post.
licenseNameThe license name for the post content.
authorThe author of the post.
sourceLinkThe source link or reference for the post content.
draftIf this post is still a draft, which won’t be displayed.

Where to Place the Post Files#

Place post files in src/content/posts/. You can create sub-directories to organize articles and their local assets.

src/content/posts/
├── example.md
└── guides/
├── cover.webp
└── index.md

Relative images such as ./cover.webp are resolved from the current article file.

Share

If this article helped you, please share it with others!

Writing a Blog Post
https://mizuki.mysqil.com/posts/guide/
Author
まつざか ゆき
Published at
2024-04-01
License
CC BY-NC-SA 4.0

Some information may be outdated

Table of Contents