mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
refactor(content-blog): clean up type definitions; in-code documentation (#6922)
* refactor(content-blog): clean up type definitions; in-code documentation * add doc
This commit is contained in:
parent
46b1027c4a
commit
8d1c1954c1
16 changed files with 509 additions and 240 deletions
|
@ -88,8 +88,8 @@ export function paginateBlogPosts({
|
|||
postsPerPage,
|
||||
totalPages: numberOfPages,
|
||||
totalCount,
|
||||
previousPage: page !== 0 ? permalink(page - 1) : null,
|
||||
nextPage: page < numberOfPages - 1 ? permalink(page + 1) : null,
|
||||
previousPage: page !== 0 ? permalink(page - 1) : undefined,
|
||||
nextPage: page < numberOfPages - 1 ? permalink(page + 1) : undefined,
|
||||
blogDescription,
|
||||
blogTitle,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue