{"action":"created","issue":{"url":"https://api.github.com/repos/github/pages-gem/issues/208","repository_url":"https://api.github.com/repos/github/pages-gem","labels_url":"https://api.github.com/repos/github/pages-gem/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/github/pages-gem/issues/208/comments","events_url":"https://api.github.com/repos/github/pages-gem/issues/208/events","html_url":"https://github.com/github/pages-gem/issues/208","id":133971421,"number":208,"title":"Pagination doesn't work in safe mode","user":{"login":"TWiStErRob","id":2906988,"avatar_url":"https://avatars.githubusercontent.com/u/2906988?v=3","gravatar_id":"","url":"https://api.github.com/users/TWiStErRob","html_url":"https://github.com/TWiStErRob","followers_url":"https://api.github.com/users/TWiStErRob/followers","following_url":"https://api.github.com/users/TWiStErRob/following{/other_user}","gists_url":"https://api.github.com/users/TWiStErRob/gists{/gist_id}","starred_url":"https://api.github.com/users/TWiStErRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TWiStErRob/subscriptions","organizations_url":"https://api.github.com/users/TWiStErRob/orgs","repos_url":"https://api.github.com/users/TWiStErRob/repos","events_url":"https://api.github.com/users/TWiStErRob/events{/privacy}","received_events_url":"https://api.github.com/users/TWiStErRob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-16T12:38:48Z","updated_at":"2016-02-24T18:40:21Z","closed_at":null,"body":"Steps to reproduce:\r\n * `jekyll new .`\r\n * append to `config.yml`:\r\n\t```yml\r\n\tgems:\r\n\t  - jekyll-paginate\r\n\r\n\tpaginate: 2\r\n\tpaginate_path: \"/page:num/\"\r\n\tsafe: false\r\n\t```\r\n * change `index.html`:\r\n\t```diff\r\n\t-{% for post in site.posts %}\r\n\t+{% for post in paginator.posts %} \r\n\r\n\t+<nav id=\"pagination\">\r\n\t+    {% if paginator.previous_page %}\r\n\t+      {% if paginator.previous_page == 1 %}\r\n\t+        <a href=\"{{ site.baseurl }}/\">&laquo;</a>\r\n\t+      {% else %}\r\n\t+        <a href=\"{{ site.baseurl }}/page{{ paginator.previous_page }}/\">&laquo;</a>\r\n\t+      {% endif %}\r\n\t+    {% endif %}\r\n\t+\r\n\t+    {% if paginator.next_page %} \r\n\t+      <a href=\"{{ site.baseurl }}/page{{ paginator.next_page }}/\">&raquo;</a>\r\n\t+    {% endif %} \r\n\t+</nav>\r\n\t```\r\n * create some posts (I duplicated `welcome-to-jekyll` a few times)\r\n\r\nTest the site and notice that pagination works nice.\r\n\r\nNow, https://help.github.com/articles/using-jekyll-with-pages/#configuration-settings-you-cannot-change states that `safe: true` is mandatory and cannot be changed. But to have pagination I need to turn `safe: false`, otherwise it won't work: with safe mode enabled the generated index.html is empty, it doesn't show the posts.\r\n\r\nHow can I test the page locally with the allowed optional gems in safe mode to be closest to GitHub pages builds?"},"comment":{"url":"https://api.github.com/repos/github/pages-gem/issues/comments/188399473","html_url":"https://github.com/github/pages-gem/issues/208#issuecomment-188399473","issue_url":"https://api.github.com/repos/github/pages-gem/issues/208","id":188399473,"user":{"login":"TWiStErRob","id":2906988,"avatar_url":"https://avatars.githubusercontent.com/u/2906988?v=3","gravatar_id":"","url":"https://api.github.com/users/TWiStErRob","html_url":"https://github.com/TWiStErRob","followers_url":"https://api.github.com/users/TWiStErRob/followers","following_url":"https://api.github.com/users/TWiStErRob/following{/other_user}","gists_url":"https://api.github.com/users/TWiStErRob/gists{/gist_id}","starred_url":"https://api.github.com/users/TWiStErRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TWiStErRob/subscriptions","organizations_url":"https://api.github.com/users/TWiStErRob/orgs","repos_url":"https://api.github.com/users/TWiStErRob/repos","events_url":"https://api.github.com/users/TWiStErRob/events{/privacy}","received_events_url":"https://api.github.com/users/TWiStErRob/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T18:40:21Z","updated_at":"2016-02-24T18:40:21Z","body":"Awesome, keep up the good work!"}}