Feature: Cannot invoke load more posts manually
ryanseys opened this issue · 1 comments
ryanseys commented
If a page has a footer (much like your personal site does), infinite scroll could be much better off as a manually "load more" option. This way you continue to scroll if you desire, but you can also reach the footer if you need to. Would be great if we could expose some way to disable the automatic loading of new posts and instead wait for a call to a function.
tobiasahlin commented
@ryanseys That's fair. I'm currently rewriting infinite-jekyll, and will aim to get this into the next version. In the meanwhile, you can do this by removing everything attached to the scroll event (line 22-35) and calling fetchPosts()
manually from a button.