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

Reading pages, sorting posts correctly #7

Merged
merged 7 commits into from
Dec 7, 2024
Merged

Conversation

dvidsilva
Copy link
Contributor

This pull request includes changes to the configuration settings and the data fetching logic from Strapi. The most important changes include updating the number of posts per page and adding sorting functionality to the fetched posts.

Configuration updates:

  • src/config.ts: Changed the postPerPage value from 3 to 8 to display more posts per page.

Data fetching improvements:

  • src/lib/strapi-loader.ts: Modified the posts variable to be mutable and added sorting functionality to order posts by creation date in descending order.

@dvidsilva dvidsilva merged commit 975cf14 into main Dec 7, 2024
1 check passed
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