Table of Contents
1. post顶部配置项
- title: 文章标题
- description: 文章描述
- publishDate: 发布时间
- updatedDate: 更新时间
- tags: 文章标签
- draft: 是否为草稿状态
- pinned: 是否置顶
- coverImage: 封面设置
示例:
title: "Markdown Admonitions"description: "This post showcases using the markdown admonition feature in Astro Cactus"publishDate: "25 Aug 2024"updatedDate: "4 July 2025"tags: ["markdown", "admonitions", "dota2"]pinned: truedraft: truecoverImage:src: "./cover.png"alt: "Astro build wallpaper"2. markdown功能
2.1 完整功能
2.2 提示
目前支持以下五类提示类型:
notetipimportantwarningcaution
示例
Note
:::noteHighlights information that users should take into account, even when skimming.:::Tip
:::tipOptional information to help a user be more successful.:::Important
:::importantCrucial information necessary for users to succeed.:::Caution
:::cautionNegative potential consequences of an action.:::Warning
:::warningCritical content demanding immediate user attention due to potential risks.:::Customising the admonition title
You can customise the admonition title using the following markup:
:::note[My custom title]This is a note with a custom title.:::Outputs: