PostFrontmatter
Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.
Metadata authored in a post's YAML frontmatter. IDs are assigned once.
import type { PostFrontmatter } from "ardo/ui"
type PostFrontmatter = {
id: string;
title: string;
description?: string;
publishedAt: string;
updatedAt?: string;
authors: string[];
tags?: string[];
path?: string;
draft?: boolean;
coverImage?: PostImageInput;
images?: Record<string, Omit<PostImageInput, "alt" | "src"> & {
alt?: string;
}>;
/** Complete static Markdown article for portable outputs when MDX needs a replacement. */
feedContent?: string;
};
Properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
title | string | Yes | |
description | string | No | |
publishedAt | string | Yes | |
updatedAt | string | No | |
authors | string[] | Yes | |
tags | string[] | No | |
path | string | No | |
draft | boolean | No | |
coverImage | PostImageInput | No | |
images | Record<string, Omit<PostImageInput, "alt" | "src"> & { alt?: string }> | No | |
feedContent | string | No | Complete static Markdown article for portable outputs when MDX needs a replacement. |