{"action":"closed","issue":{"url":"https://api.github.com/repos/getpelican/pelican/issues/1721","labels_url":"https://api.github.com/repos/getpelican/pelican/issues/1721/labels{/name}","comments_url":"https://api.github.com/repos/getpelican/pelican/issues/1721/comments","events_url":"https://api.github.com/repos/getpelican/pelican/issues/1721/events","html_url":"https://github.com/getpelican/pelican/issues/1721","id":76391735,"number":1721,"title":"'pelican.contents.Page object' has no attribute 'index'","user":{"login":"stevengorrell","id":2448198,"avatar_url":"https://avatars.githubusercontent.com/u/2448198?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengorrell","html_url":"https://github.com/stevengorrell","followers_url":"https://api.github.com/users/stevengorrell/followers","following_url":"https://api.github.com/users/stevengorrell/following{/other_user}","gists_url":"https://api.github.com/users/stevengorrell/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengorrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengorrell/subscriptions","organizations_url":"https://api.github.com/users/stevengorrell/orgs","repos_url":"https://api.github.com/users/stevengorrell/repos","events_url":"https://api.github.com/users/stevengorrell/events{/privacy}","received_events_url":"https://api.github.com/users/stevengorrell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T15:20:08Z","updated_at":"2015-05-14T17:09:00Z","closed_at":"2015-05-14T17:09:00Z","body":"Created a test page:\r\n\r\n```\r\nTitle: Page One\r\nDate: 2015-05-14 08:00\r\nSlug: page-one\r\nAuthors: Steven\r\n   \r\nBlah\r\n```\r\n\r\nPelican compiles fine.\r\n\r\nCreate an additional page.\r\n\r\n```\r\nTitle: Page Two\r\nDate: 2015-05-14 07:00\r\nSlug: page-two \r\nAuthors: Steven\r\n\r\nblah\r\n```\r\n\r\nPelican fails to compile:\r\n\r\n```\r\nCRITICAL: 'pelican.contents.Page object' has no attribute 'index'\r\nTraceback (most recent call last):\r\n  File \"C:\\Python27\\Scripts\\pelican-script.py\", line 9, in <module>\r\n    load_entry_point('pelican==3.5.0', 'console_scripts', 'pelican')()\r\n  File \"c:\\python27\\src\\pelican\\pelican\\__init__.py\", line 462, in main\r\n    pelican.run()\r\n  File \"c:\\python27\\src\\pelican\\pelican\\__init__.py\", line 177, in run\r\n    p.generate_output(writer)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\generators.py\", line 601, in generate_output\r\n    self.generate_pages(writer)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\generators.py\", line 477, in generate_pages\r\n    self.generate_articles(write)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\generators.py\", line 355, in generate_articles\r\n    blog=True)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\writers.py\", line 211, in write_file\r\n    override_output)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\writers.py\", line 155, in _write_file\r\n    output = template.render(localcontext)\r\n  File \"C:\\Python27\\lib\\site-packages\\jinja2\\environment.py\", line 969, in render\r\n    return self.environment.handle_exception(exc_info, True)\r\n  File \"C:\\Python27\\lib\\site-packages\\jinja2\\environment.py\", line 742, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"c:\\python27\\src\\pelican\\pelican\\themes\\foundation-default-colours\\templates\\article.html\", line 1, in top-level template code\r\n    {% extends \"base.html\" %}\r\n  File \"c:\\python27\\src\\pelican\\pelican\\themes\\foundation-default-colours\\templates\\base.html\", line 118, in top-level template code\r\n    {% for pg in PAGES | sort(attribute='index') %}\r\n  File \"C:\\Python27\\lib\\site-packages\\jinja2\\filters.py\", line 265, in do_sort\r\n    return sorted(value, key=sort_func, reverse=reverse)\r\njinja2.exceptions.UndefinedError: 'pelican.contents.Page object' has no attribute 'index'\r\n```"}}