Skip to content
/ docs Public
forked from withastro/docs

Commit

Permalink
i18n(fr): Update tutorial/5-astro-api/3.mdx from withastro#10727
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bonnet <[email protected]>
  • Loading branch information
thomasbnt committed Jan 21, 2025
1 parent 041785a commit b0e43d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/fr/tutorial/5-astro-api/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Voici à quoi devrait ressembler votre nouvelle page :
---
import BaseLayout from '../../layouts/BaseLayout.astro';
const allPosts = Object.values(import.meta.glob('../posts/*.md', { eager: true }));
const tags = [...new Set(allPosts.map((post) => post.frontmatter.tags).flat())];
const tags = [...new Set(allPosts.map((post: any) => post.frontmatter.tags).flat())];
const pageTitle = "Index des étiquettes";
---
<BaseLayout pageTitle={pageTitle}>
Expand Down

0 comments on commit b0e43d5

Please sign in to comment.