Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: add pagination to blog #93

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NdagiStanley
Copy link

What does this PR do?

Adds pagination to the blog

Description of Task to be completed?

  • Create 'blog list' pages
  • Add links '← Previous Page' and 'Next Page →' to the 'blog list' pages

How should this be manually tested?

  1. Checkout to this branch
  2. Run the dev server
  3. Navigate to /blog
  4. Scroll to the bottom, just above the footer
  5. Click the '← Previous Page' and 'Next Page →' links to navigate

Any background/ further context you want to provide?

  1. I have added a redirect from /blog/1 to blog
  2. The current blogPostsPerPage is 3. Happy to update it to another ideal number.

Screenshots (if appropriate)

Here's a GIF of the feature: https://share.md.bio/Vq9T6YRhW6x2Cm9TTHJC

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for decap-www failed. Why did it fail? →

Built without sensitive environment variables

Name Link
🔨 Latest commit cfe18f6
🔍 Latest deploy log https://app.netlify.com/sites/decap-www/deploys/674d00114008e9000817d1c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant