Skip to content

Commit

Permalink
🚧 Deuxième fox redirections
Browse files Browse the repository at this point in the history
  • Loading branch information
Funasitien authored May 27, 2024
1 parent 0d0ec2f commit ae667f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/projects/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Card from "../../components/ProjectCard.astro";
const posts = await Astro.glob("./*.mdx");
const getPostUrl = (post) => {
if (post.frontmatter.slug.includes('http://') || post.frontmatter.slug.includes('https://')) {
return post.frontmatter.slug;
if (post.frontmatter.url.includes('http://') || post.frontmatter.url.includes('https://')) {
return post.frontmatter.url;
} else {
return post.url;
}
Expand Down

0 comments on commit ae667f8

Please sign in to comment.