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

How to enable/implement infinitescroll.js in homepage? #44

Open
spurwadi2 opened this issue Apr 25, 2018 · 3 comments
Open

How to enable/implement infinitescroll.js in homepage? #44

spurwadi2 opened this issue Apr 25, 2018 · 3 comments

Comments

@spurwadi2
Copy link

No description provided.

@biomadeira
Copy link
Member

biomadeira commented Apr 25, 2018

Hi @spurwadi2 As far as I understand and because jekyll sites are purely static, we cannot hold posts and then request them from say a database asynchronously... because of that I think we would need to tie the infinitescroll.js with the jekyll paginate somehow for this to work. Not sure how to do it though, to be honest...
At the moment you would be able to show 100 posts. More than that will be shown in multiple pages... See https://github.com/jekyller/jasper2/blob/master/_config.yml#L4

F:)

@spurwadi2
Copy link
Author

Hello @biomadeira and thank you for your answer.

I'm googling for this blog http://blog.scottlogic.com/2014/10/14/jekyll-pagination-and-infinite-scrolling.html and its work with jScroll jQuery plugin.
Here's example project’s generated site and here's the github source code

I want to try it but I'm not good at code. If someone could help it would be great.

@maximousblk
Copy link

@biomadeira can lazy load be a solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants