{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/1297","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/1297/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/1297/events","html_url":"https://github.com/hexojs/hexo/issues/1297","id":81372147,"number":1297,"title":"Pagination cannot be disabled","user":{"login":"steckerhalter","id":3024024,"avatar_url":"https://avatars.githubusercontent.com/u/3024024?v=3","gravatar_id":"","url":"https://api.github.com/users/steckerhalter","html_url":"https://github.com/steckerhalter","followers_url":"https://api.github.com/users/steckerhalter/followers","following_url":"https://api.github.com/users/steckerhalter/following{/other_user}","gists_url":"https://api.github.com/users/steckerhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/steckerhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steckerhalter/subscriptions","organizations_url":"https://api.github.com/users/steckerhalter/orgs","repos_url":"https://api.github.com/users/steckerhalter/repos","events_url":"https://api.github.com/users/steckerhalter/events{/privacy}","received_events_url":"https://api.github.com/users/steckerhalter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T09:43:19Z","updated_at":"2015-06-03T20:55:46Z","closed_at":"2015-06-03T13:48:42Z","body":"According to http://hexo.io/docs/configuration.html#Pagination it should be possible to turn off pagination by setting `per_page` to 0 (which worked before v.3.0)\r\n\r\nI looked at the code and it looks like:\r\n\r\n```js\r\nhexo.config.index_generator = assign({\r\n  per_page: hexo.config.per_page || 10\r\n}, hexo.config.index_generator);\r\n```\r\n\r\nsince `0` is falsy it will always take `10` "},"comment":{"url":"https://api.github.com/repos/hexojs/hexo/issues/comments/108613967","html_url":"https://github.com/hexojs/hexo/issues/1297#issuecomment-108613967","issue_url":"https://api.github.com/repos/hexojs/hexo/issues/1297","id":108613967,"user":{"login":"steckerhalter","id":3024024,"avatar_url":"https://avatars.githubusercontent.com/u/3024024?v=3","gravatar_id":"","url":"https://api.github.com/users/steckerhalter","html_url":"https://github.com/steckerhalter","followers_url":"https://api.github.com/users/steckerhalter/followers","following_url":"https://api.github.com/users/steckerhalter/following{/other_user}","gists_url":"https://api.github.com/users/steckerhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/steckerhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steckerhalter/subscriptions","organizations_url":"https://api.github.com/users/steckerhalter/orgs","repos_url":"https://api.github.com/users/steckerhalter/repos","events_url":"https://api.github.com/users/steckerhalter/events{/privacy}","received_events_url":"https://api.github.com/users/steckerhalter/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T20:55:46Z","updated_at":"2015-06-03T20:55:46Z","body":"@borisschapira great! thanks a bunch"}}