Skip to content

Commit

Permalink
Merge pull request #3 from dig-dao:i18n
Browse files Browse the repository at this point in the history
fix build error
  • Loading branch information
halsk authored Dec 17, 2023
2 parents 5c53739 + 4997308 commit 55b2aad
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 55b2aad

Please sign in to comment.