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.
- Go to
package.json', under
[ “config”: {} ], insert / update
“posts_per_page”: 5,` - Go to
/<theme>/assets/js/lib
, removeinfinite-scroll.js
. - If you are on Casper Theme (GitHub - TryGhost/Casper: The default theme for Ghost) like me, Go to
/casper/assets/built
, removecasper.js
, so can "force-recompile this js file. - If you are using Visual Studio Code, close the Workspace, then re-open it.
- Use Terminal to go to the Theme’s folder, do a
yarn dev', then do another
yarn zip` -
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! ;)