219 字
1 分钟
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.

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Writing a Blog Post
https://www.nachaos.xyz/posts/guide/
作者
NecoArc-Chaos
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录