{"action":"created","issue":{"url":"https://api.github.com/repos/DefactoSoftware/website/issues/267","repository_url":"https://api.github.com/repos/DefactoSoftware/website","labels_url":"https://api.github.com/repos/DefactoSoftware/website/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/DefactoSoftware/website/issues/267/comments","events_url":"https://api.github.com/repos/DefactoSoftware/website/issues/267/events","html_url":"https://github.com/DefactoSoftware/website/pull/267","id":166470825,"number":267,"title":"[READY] Blog pagination fixes","user":{"login":"sn3p","id":935529,"avatar_url":"https://avatars.githubusercontent.com/u/935529?v=3","gravatar_id":"","url":"https://api.github.com/users/sn3p","html_url":"https://github.com/sn3p","followers_url":"https://api.github.com/users/sn3p/followers","following_url":"https://api.github.com/users/sn3p/following{/other_user}","gists_url":"https://api.github.com/users/sn3p/gists{/gist_id}","starred_url":"https://api.github.com/users/sn3p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sn3p/subscriptions","organizations_url":"https://api.github.com/users/sn3p/orgs","repos_url":"https://api.github.com/users/sn3p/repos","events_url":"https://api.github.com/users/sn3p/events{/privacy}","received_events_url":"https://api.github.com/users/sn3p/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-20T00:48:33Z","updated_at":"2016-07-21T15:16:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DefactoSoftware/website/pulls/267","html_url":"https://github.com/DefactoSoftware/website/pull/267","diff_url":"https://github.com/DefactoSoftware/website/pull/267.diff","patch_url":"https://github.com/DefactoSoftware/website/pull/267.patch"},"body":"Fixes https://github.com/DefactoSoftware/website/issues/265\r\n\r\n@RonaldDijkstra I've got it working (see `page_classes` helper):\r\n\r\n```rb\r\n# replace `blog_#_index` with `blog_index`\r\nclasses.sub!(/blog_\\d+_index/, \"blog_index\")\r\n```\r\n\r\nAlso changed some other blog checks/conditionals that weren't valid anymore using pagination.\r\n\r\nFor easier checking I've added `is_blog?` and `is_blog_index?` helpers (`is_blog_article?` is already provided by Middleman).\r\n\r\n**please review and test**"},"comment":{"url":"https://api.github.com/repos/DefactoSoftware/website/issues/comments/234286279","html_url":"https://github.com/DefactoSoftware/website/pull/267#issuecomment-234286279","issue_url":"https://api.github.com/repos/DefactoSoftware/website/issues/267","id":234286279,"user":{"login":"RonaldDijkstra","id":16101007,"avatar_url":"https://avatars.githubusercontent.com/u/16101007?v=3","gravatar_id":"","url":"https://api.github.com/users/RonaldDijkstra","html_url":"https://github.com/RonaldDijkstra","followers_url":"https://api.github.com/users/RonaldDijkstra/followers","following_url":"https://api.github.com/users/RonaldDijkstra/following{/other_user}","gists_url":"https://api.github.com/users/RonaldDijkstra/gists{/gist_id}","starred_url":"https://api.github.com/users/RonaldDijkstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonaldDijkstra/subscriptions","organizations_url":"https://api.github.com/users/RonaldDijkstra/orgs","repos_url":"https://api.github.com/users/RonaldDijkstra/repos","events_url":"https://api.github.com/users/RonaldDijkstra/events{/privacy}","received_events_url":"https://api.github.com/users/RonaldDijkstra/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T15:16:42Z","updated_at":"2016-07-21T15:16:42Z","body":"Thanks and thanks for the extra fixes @sn3p. "}}
{"actor":{"display_login":"RonaldDijkstra"}}