{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/13","labels_url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/13/comments","events_url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/13/events","html_url":"https://github.com/segmentio/metalsmith-collections/pull/13","id":33955426,"number":13,"title":"Added the ability to limit the size of a collection","user":{"login":"dpobel","id":305563,"avatar_url":"https://avatars.githubusercontent.com/u/305563?v=3","gravatar_id":"","url":"https://api.github.com/users/dpobel","html_url":"https://github.com/dpobel","followers_url":"https://api.github.com/users/dpobel/followers","following_url":"https://api.github.com/users/dpobel/following{/other_user}","gists_url":"https://api.github.com/users/dpobel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpobel/subscriptions","organizations_url":"https://api.github.com/users/dpobel/orgs","repos_url":"https://api.github.com/users/dpobel/repos","events_url":"https://api.github.com/users/dpobel/events{/privacy}","received_events_url":"https://api.github.com/users/dpobel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-05-21T06:49:12Z","updated_at":"2015-02-07T04:38:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/segmentio/metalsmith-collections/pulls/13","html_url":"https://github.com/segmentio/metalsmith-collections/pull/13","diff_url":"https://github.com/segmentio/metalsmith-collections/pull/13.diff","patch_url":"https://github.com/segmentio/metalsmith-collections/pull/13.patch"},"body":"As the title says, this patch adds the ability to limit the size of a collection by using a `limit` option in its definition.\r\n\r\nMy use case: in the home page of my website, I want to display the 10 last blog posts (and I don't want to write a template filter/function/operator ;-))"},"comment":{"url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/comments/73349600","html_url":"https://github.com/segmentio/metalsmith-collections/pull/13#issuecomment-73349600","issue_url":"https://api.github.com/repos/segmentio/metalsmith-collections/issues/13","id":73349600,"user":{"login":"dominicbarnes","id":160197,"avatar_url":"https://avatars.githubusercontent.com/u/160197?v=3","gravatar_id":"","url":"https://api.github.com/users/dominicbarnes","html_url":"https://github.com/dominicbarnes","followers_url":"https://api.github.com/users/dominicbarnes/followers","following_url":"https://api.github.com/users/dominicbarnes/following{/other_user}","gists_url":"https://api.github.com/users/dominicbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dominicbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominicbarnes/subscriptions","organizations_url":"https://api.github.com/users/dominicbarnes/orgs","repos_url":"https://api.github.com/users/dominicbarnes/repos","events_url":"https://api.github.com/users/dominicbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/dominicbarnes/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T04:38:46Z","updated_at":"2015-02-07T04:38:46Z","body":"I think this type of feature has some merit, so I will work on getting it merged in. @dpobel if you have the time/interest to refactor the branch, it would help me a lot."}}