Skip to content

Commit

Permalink
fix: send meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 16, 2023
1 parent d5e4d90 commit b4902b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/make-post-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const postCount = 5;
const filtered = metas
.sort((a, b) => new Date(b.date) - new Date(a.date))
.slice(0, postCount);
const posts = filtered.map(({ filePath, index }) => {
const posts = filtered.map(({ filePath }, index) => {
return {
path: `${blogPath}/posts${filePath.replace(".mdx", "")}`,
meta: metas[index],
Expand Down

0 comments on commit b4902b2

Please sign in to comment.