跳到內容

Content Schema should not contain slug.

本頁內容尚未翻譯。

ContentSchemaContainsSlugError: A content collection schema should not contain slug since it is reserved for slug generation. Remove this from your COLLECTION_NAME collection schema.

A legacy content collection schema should not contain the slug field. This is reserved by Astro for generating entry slugs. Remove slug from your schema. You can still use custom slugs in your frontmatter.

See Also:

Contribute

What’s on your mind?

Create GitHub Issue

Quickest way to alert our team of a problem.

Community