LOADING
308 字
2 分钟
模板指南 - 入门
2001-10-02
无标签
统计加载中...

提示:本指南中未提及的内容,您可以在 Astro 文档 中找到答案。

文章的 Front-matter#

---
title: My First Blog Post
published: 2020-02-02
description: This is the first post of my new Astro blog.
cover: ./cover.webp
coverInContent: false
tags: []
category: Guides
comment: true
draft: false
---
属性说明
title文章标题。
published文章发布日期。
pinned是否将此文章置顶显示在文章列表顶部。
description文章的简短描述。显示在索引页面上。
cover文章封面图片路径。
1. 以 http://https:// 开头:网络图片
2. 以 / 开头:public 目录中的图片
3. 无前缀:相对于 markdown 文件的路径
coverInContent是否在文章内容中显示封面图片。
tags文章标签。
category文章分类
1. 单个分类:category: Guides
2. 多个分类:category: [Guides, Getting Started]
licenseName文章内容的许可证名称。
author文章作者。
sourceLink文章内容的来源链接或参考。
comment是否为此文章启用评论功能。默认为 true
draft如果此文章仍为草稿,则不会显示。

文章文件存放位置#

您的文章文件应放置在 src/content/posts/ 目录中。您也可以创建子目录来更好地组织您的文章和资源文件。

src/content/posts/
├── post-1.md
└── post-2/
├── cover.webp
└── index.md
模板指南 - 入门
/posts/guide/getting-started/
作者
Mojito
发布于
2001-10-02
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

Profile Image of the Author
Mojito
薄荷与青柠的重逢,是夏天最得体的注脚

统计加载中...
公告
欢迎来到我的博客!