Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
halsk committed Dec 17, 2023
1 parent 67d6d2a commit 4997308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/layouts/components/FormattedDate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ interface Props {
}
const { date, enableTime } = Astro.props;
console.log(date);
---

<time datetime={date.toISOString()}>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/en/projects/[single].astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export async function getStaticPaths() {
})
.map((post) => ({
params: {
single: post.slug.split("/")[1],
single:
post.slug.split("/").length > 1 ? post.slug.split("/")[1] : post.slug,
},
props: { post },
}));
Expand Down

0 comments on commit 4997308

Please sign in to comment.