Front Matter
Each article can include a Front Matter section (in YAML format) at the beginning to provide metadata that the theme may require, such as: title, date, tags, description, author, cover image, sticky post, menu, etc. Meow~
Complete Example
title: 写作 # 标题:不填则默认使用文件名(或主题的默认逻辑)
date: 2025-11-19 # 日期:不填则会使用文件的最后修改时间
tags: # 标签:不填则表示没有标签
- kecare
- blog
desc: 这是一段简介 # 简介:用于首页/落地页文章卡片;不填可用正文开头截取
author: 作者 # 作者:不填则为空
coverSrc: "https://example.com/cover.webp" # 封面/背景图:不填则使用主题默认图
sticky: 1 # 置顶:数字越大越靠前;不填则按日期倒序
menu: kecare-docs # 菜单 key:用于挂载左侧菜单
translate: ['zh-CN', 'en-US', 'ja-JP'] #用于国际化处理
Field Description (Recommended Conventions)
| Field | Type | Description |
|---|---|---|
| title | string | Article Title |
| date | string | Article Date (Format suggested YYYY-MM-DD) |
| tags | string[] | Tags Array |
| desc | string | Summary |
| author | string | Author Name |
| coverSrc | string | Cover/Background Image URL |
| sticky | number | Sticky Priority |
| menu | string | Bind Menu Key |