prev / numbered / next row.
Install
From your site folder, run:
jprot add PaginationThat downloads the self-contained component into theme/components/Pagination.js,
where it is picked up automatically — the same way as any built-in component.
To remove it later, just delete that file.
Use it as a homepage section
Add an entry to the sections: list in jprot.config.js:
sections: [
{ component: 'Pagination', title: 'Pagination' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::Pagination current=3 total=6 urlBase="/page"Props
| Prop | Type | Note |
|---|---|---|
current | number | active page |
total | number | page count |
urlBase | string | href prefix (/page → /page/2) |