toha icon indicating copy to clipboard operation
toha copied to clipboard

The pagination for bigger screens works wrong

Open mmzeynalli opened this issue 1 year ago • 1 comments

Expected Behavior

In the posts page, the posts should be gridded by 5,5,5 and the next page button.

Current Behavior

It shows 5, 5, 2 and the next page.

Screenshots

image

Browsers Affected

  • [ ] Chrome
  • [ ] Firefox
  • [x] Edge
  • [ ] Safari 11
  • [ ] Safari 10
  • [ ] IE 11

Detailed Description

I have 32'' screen, 2560x1440 resolution. Using MacOS, Edge browser.

mmzeynalli avatar Feb 06 '24 22:02 mmzeynalli

You can configure how many posts will be shown per page. By default, it is 12. If you set higher number then it will show more cards. You have to set the pagination.maxPostsPerPage variable in your config.yaml file. Check this example: https://github.com/hugo-toha/hugo-toha.github.io/blob/81444d2c7e65fc3ea31dcb75396d86bf834a1e50/config.yaml#L259

hossainemruz avatar Feb 07 '24 09:02 hossainemruz

Feel free to re-open if you still having trouble setting pagination.

hossainemruz avatar Feb 21 '24 14:02 hossainemruz