Skip to content

Commit 691e541

Browse files
committed
update docs
1 parent ab6e92f commit 691e541

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pages/en/guides/content-collections.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ const { Content } = await entry.render();
404404

405405
The `slug()` function in `defineCollection()` lets you customize how a content entry `slug` value is created. However, this function does not have access to any frontmatter.
406406

407-
You can still create custom URLs from your content frontmatter inside the `getStaticPaths()` function, when building for static output.
408-
409-
For example, to create a custom URL for each blog post based on its `permalink` frontmatter property, you could do the following:
407+
You can still create custom URLs from your content frontmatter inside the `getStaticPaths()` function, when building for static output. For example, to create a custom URL for each blog post based on its `permalink` frontmatter property, you could do the following:
410408

411409
```astro "entry.data.permalink"
412410
---

0 commit comments

Comments
 (0)