Skip to content

Commit

Permalink
fix: 없는 시리즈 비우기
Browse files Browse the repository at this point in the history
  • Loading branch information
yongsk0066 committed Jun 11, 2024
1 parent 1ba40e9 commit 8438293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const seriesPosts = (
return !id.startsWith("en/");
})
)
.filter((_post) => _post.data.series === post.data.series)
.filter(
(_post) => _post.data.series === post.data.series && !!post.data.series
)
.sort((a, b) => a.data.date.valueOf() - b.data.date.valueOf());
const { Content } = await post.render();
Expand Down

0 comments on commit 8438293

Please sign in to comment.