Skip to content

Commit

Permalink
Merge pull request #119 from shandianchengzi/master
Browse files Browse the repository at this point in the history
fix(pages): 解决published下一页渲染异常。
  • Loading branch information
mudongliang committed Jul 18, 2024
2 parents db60237 + e1d779f commit 3b2bcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pages/src/pages/[status]/[page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ const pagination = getPagination({
});
---

<Posts {...pagination} status={status} />
<!-- if status === 'published', add publishPage param -->
<Posts {...pagination} status={status} publishPage={status === 'published'} />
3 changes: 2 additions & 1 deletion pages/src/pages/[status]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ const pagination = getPagination({
});
---

<Posts {...pagination} status={status} />
<!-- if status === 'published', add publishPage param -->
<Posts {...pagination} status={status} publishPage={status === 'published'} />

0 comments on commit 3b2bcb3

Please sign in to comment.