{"id":20668729,"url":"https://github.com/j911/jekyll-infinite-scroll","last_synced_at":"2025-04-19T18:09:24.766Z","repository":{"id":43152170,"uuid":"150694603","full_name":"J911/jekyll-infinite-scroll","owner":"J911","description":"🖱 infinite scroll in jekyll","archived":false,"fork":false,"pushed_at":"2022-03-16T04:22:30.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T22:49:26.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://j911.me/2018/09/setup-jekyll-infinite-scroll.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J911.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-28T06:19:29.000Z","updated_at":"2022-06-29T14:11:53.000Z","dependencies_parsed_at":"2022-08-29T23:50:35.877Z","dependency_job_id":null,"html_url":"https://github.com/J911/jekyll-infinite-scroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J911%2Fjekyll-infinite-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J911%2Fjekyll-infinite-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J911%2Fjekyll-infinite-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J911%2Fjekyll-infinite-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J911","download_url":"https://codeload.github.com/J911/jekyll-infinite-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249758805,"owners_count":21321602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T20:11:06.885Z","updated_at":"2025-04-19T18:09:24.746Z","avatar_url":"https://github.com/J911.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jekyll-infinite-scroll\n![CDN](https://img.shields.io/badge/CDN-1.0.5-red.svg)\n![bower-modules](https://img.shields.io/badge/Bower-modules-green.svg)\n![MIT-LISENCE](https://img.shields.io/badge/license-MIT-blue.svg)\n\njekyll infinite scroll\n\n## install\n\n```\n$ bower install jekyll-infinite-scroll --save\n```\nor\n```\n\u003cscript src=\"https://cdn.rawgit.com/J911/jekyll-infinite-scroll/master/lib/InfiniteScroll.js\"\u003e\u003c/script\u003e\n```\nor\ndirect download [this link](https://github.com/J911/jekyll-infinite-scroll/archive/master.zip)\n\n## Using\n1. set pagenation in jekyell\nadd \"jekyll-paginate\" in `_config.yml` and `Gemfile`\nand set `_config.yml`\n```\npaginate: 2\npaginate_path: \"/page/:num\"\n```\n\n2. set pagenation in html\n(example)\n```\n\u003cdiv class=\"card--group\" id=\"card-wrapper\"\u003e\n    {%- if paginator.posts.size \u003e 0 -%}\n    {%- for post in paginator.posts -%}\n        \u003ca href=\"{{ post.url | relative_url }}\"\u003e\n            \u003cdiv class=\"card\"\u003e\n                \u003cdiv class=\"card__header\"\u003e\n                    \u003ch3 class=\"card__header__title\"\u003e{{ post.title | escape }}\u003c/h3\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"card__body\"\u003e\n                    {%- assign date_format = paginator.minima.date_format | default: \"%b %-d, %Y\" -%}\n                    {{ post.date | date: date_format }}\n                    {{ post.excerpt }}\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/a\u003e\n    {%- endfor -%}\n{%- endif -%}\n\u003c/div\u003e\n```\n3. include this lib and setting\n```\n\u003cscript src='lib/InfiniteScroll.js'\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var postWrapperId = 'card-wrapper';\n    var paginatePath = '/page/'\n    new InfiniteScroll(paginatePath, postWrapperId);\n\u003c/script\u003e\n```\n4. Done! ✌🏻\n\n## LICENSE\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj911%2Fjekyll-infinite-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj911%2Fjekyll-infinite-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj911%2Fjekyll-infinite-scroll/lists"}