Skip to content

Commit

Permalink
docs: clarify old API is for beta users
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Jan 23, 2023
1 parent 79efd5a commit 43b6159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/large-steaks-film.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
'astro': major
---

Replace the content collection `slug()` config with a new `slug` frontmatter field.
Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` collection config option from Astro 1.X and the 2.0 beta.

This introduces a reserved `slug` property you can add to any Markdown or MDX collection entry. When present, this will override the generated slug for that entry.
When present in a Markdown or MDX file, this will override the generated slug for that entry.

```diff
# src/content/blog/post-1.md
Expand Down

0 comments on commit 43b6159

Please sign in to comment.