Pagination Post Limit on home.hbs doesn't seem to work

Hi @Kevin,

Somehow I managed to resolve it. So here are just a few steps in case someone else needed a solution as it is hard to find one via Google as well.

  1. Go to package.json', under [ “config”: {} ], insert / update “posts_per_page”: 5,`
  2. Go to /<theme>/assets/js/lib, remove infinite-scroll.js.
  3. If you are on Casper Theme (GitHub - TryGhost/Casper: The default theme for Ghost) like me, Go to /casper/assets/built, remove casper.js, so can "force-recompile this js file.
  4. If you are using Visual Studio Code, close the Workspace, then re-open it.
  5. Use Terminal to go to the Theme’s folder, do a yarn dev', then do another yarn zip`
  6. casper.js file should be regenerated and it should work by now. — https://therobexperiment.com/

However, I am just odd why there are no other way to manually “switch off” the function through a config code or something, as in the event I may want other pages to have “infinite scroll”, by re-installing it into my theme, the bug in my home.hbs will come up again.

Hopefully there will a solution in the near future! Thanks! Cheers! ;)