Skip to content

Commit

Permalink
Merge branch 'main' into chore/update-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored Dec 17, 2024
2 parents 9ee2504 + 05c209a commit 4aed803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/docs/fr/recipes/rss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ export async function GET(context) {
title: post.data.title,
pubDate: post.data.pubDate,
description: post.data.description,
// Calculer le lien RSS à partir de l'article `slug`
// Cet exemple suppose que tous les articles sont rendus sous forme de routes `/blog/[slug]`.
link: `/blog/${post.slug}/`,
// Calculer le lien RSS à partir de l'`id` de l'article
// Cet exemple suppose que tous les articles sont rendus sous forme de routes `/blog/[id]`.
link: `/blog/${post.id}/`,
})),
});
}
Expand Down Expand Up @@ -185,7 +185,7 @@ export async function GET(context) {
description: "Le guide des étoiles d'un humble astronaute",
site: context.site,
items: blog.map((post) => ({
link: `/blog/${post.slug}/`,
link: `/blog/${post.id}/`,
// Note : ceci ne traitera pas les composants ou les expressions JSX dans les fichiers MDX.
content: sanitizeHtml(parser.render(post.body), {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img'])
Expand Down

0 comments on commit 4aed803

Please sign in to comment.