sanman1k98 / www

Source code for my website
https://nicesandeep.com
MIT License
2 stars 0 forks source link

Use the `paginate()` function to generate pages for `/photos/[page]` #18

Closed sanman1k98 closed 11 months ago

sanman1k98 commented 12 months ago

Instead of transforming the array of photos to get a page number, we can use paginate() in the getStaticPaths() function to do that for us.

sanman1k98 commented 11 months ago

Actually I think it is better to do the transformation because I would be able to create links to specific photos from anywhere I have access to that collection entry.

Closing this issue.