{"action":"created","issue":{"url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/9","labels_url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/9/comments","events_url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/9/events","html_url":"https://github.com/tobiasahlin/infinite-jekyll/issues/9","id":30944788,"number":9,"title":"Cannot get infinite scroll to work with simplest implementation","user":{"login":"dcac","id":6777172,"avatar_url":"https://avatars.githubusercontent.com/u/6777172?v=3","gravatar_id":"","url":"https://api.github.com/users/dcac","html_url":"https://github.com/dcac","followers_url":"https://api.github.com/users/dcac/followers","following_url":"https://api.github.com/users/dcac/following{/other_user}","gists_url":"https://api.github.com/users/dcac/gists{/gist_id}","starred_url":"https://api.github.com/users/dcac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcac/subscriptions","organizations_url":"https://api.github.com/users/dcac/orgs","repos_url":"https://api.github.com/users/dcac/repos","events_url":"https://api.github.com/users/dcac/events{/privacy}","received_events_url":"https://api.github.com/users/dcac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-04-06T19:40:57Z","updated_at":"2015-01-16T13:31:01Z","closed_at":"2014-09-13T09:49:31Z","body":"Hi there,\r\n\r\nI am trying the simplest implementation I can think of and infinite-scroll.js doesn't seem to want to to work.\r\n\r\nHere's my implementation in the index file:\r\n\r\n```html\r\n <div style=\"height:800px\"> </div>\r\n  {% for post in site.posts limit: 10 %}\r\n  <div class=\"post\">\r\n    {{ post.title }}\r\n  </div>\r\n  {% endfor %}\r\n  <div class=\"infinite-spinner\"></div>\r\n```\r\n\r\nAnd here's the output HTML on build:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <title>Page Title</title>\r\n    <script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\"></script>\r\n  \t<script type=\"text/javascript\" src=\"/js/infinite-jekyll.js\"></script>\r\n    <link href=\"/css/home.css\" rel=\"stylesheet\">\r\n  </head>\r\n  <body>  \r\n    <div style=\"height:800px\"></div>\r\n    <div class=\"post\">\r\n      Veronica Mars\r\n    </div>\r\n    <div class=\"post\">\r\n      Mr. Peabody & Sherman\r\n    </div>\r\n    <div class=\"post\">\r\n      Need for Speed\r\n    </div>\r\n    <div class=\"post\">\r\n      Blackfish\r\n    </div>\r\n    <div class=\"post\">\r\n      Enemy\r\n    </div>\r\n    <div class=\"post\">\r\n      300: Rise of an Empire\r\n    </div>\r\n    <div class=\"post\">\r\n      Grabbers\r\n    </div>\r\n    <div class=\"post\">\r\n      Non-Stop\r\n    </div>\r\n    <div class=\"post\">\r\n      Omar\r\n    </div>\r\n    <div class=\"post\">\r\n      The Missing Picture\r\n    </div>\r\n    <div class=\"infinite-spinner\"></div>\r\n  </body>\r\n</html>\r\n```\r\n\r\nCan you see why infinite scroll might not be working? I have no console errors, so the links to the .js files are good.\r\n\r\nThanks for any help!"},"comment":{"url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/comments/70253403","html_url":"https://github.com/tobiasahlin/infinite-jekyll/issues/9#issuecomment-70253403","issue_url":"https://api.github.com/repos/tobiasahlin/infinite-jekyll/issues/9","id":70253403,"user":{"login":"SpaceG","id":3528165,"avatar_url":"https://avatars.githubusercontent.com/u/3528165?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceG","html_url":"https://github.com/SpaceG","followers_url":"https://api.github.com/users/SpaceG/followers","following_url":"https://api.github.com/users/SpaceG/following{/other_user}","gists_url":"https://api.github.com/users/SpaceG/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceG/subscriptions","organizations_url":"https://api.github.com/users/SpaceG/orgs","repos_url":"https://api.github.com/users/SpaceG/repos","events_url":"https://api.github.com/users/SpaceG/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceG/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T13:31:01Z","updated_at":"2015-01-16T13:31:01Z","body":"need it to be <div class=\"posts\"> or  <div class=\"post\"> and the second one?  json file >>\r\n{\r\n  \"posts\" : [\r\n    {% for post in site.posts %}\r\n    \"{{ post.url }}\"{% unless forloop.last %},{% endunless %}\r\n    {% endfor %}\r\n  ]\r\n}\r\n\r\n\r\n\r\n? it's mess... "}}