{"action":"created","comment":{"url":"https://api.github.com/repos/getpelican/pelican/pulls/comments/39501739","id":39501739,"diff_hunk":"@@ -122,3 +122,7 @@ def __init__(self, name, *args, **kwargs):\n \n class Author(URLWrapper):\n     pass\n+\n+\n+class Index(URLWrapper):\n+    pass","path":"pelican/urlwrappers.py","position":7,"original_position":7,"commit_id":"8cebb3207a566ee85a331d8eb5044984b03b4a30","original_commit_id":"44fdd40b073dd50f053099b5e9671688e85f1a6d","user":{"login":"onuraslan","id":345828,"avatar_url":"https://avatars.githubusercontent.com/u/345828?v=3","gravatar_id":"","url":"https://api.github.com/users/onuraslan","html_url":"https://github.com/onuraslan","followers_url":"https://api.github.com/users/onuraslan/followers","following_url":"https://api.github.com/users/onuraslan/following{/other_user}","gists_url":"https://api.github.com/users/onuraslan/gists{/gist_id}","starred_url":"https://api.github.com/users/onuraslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onuraslan/subscriptions","organizations_url":"https://api.github.com/users/onuraslan/orgs","repos_url":"https://api.github.com/users/onuraslan/repos","events_url":"https://api.github.com/users/onuraslan/events{/privacy}","received_events_url":"https://api.github.com/users/onuraslan/received_events","type":"User","site_admin":false},"body":"`URLWrapper._from_settings` is using `self.__class__.__name__.upper()` and key to generate setting name. In this case we need INDEX_SAVE_AS setting value. That is also reason  we have:\r\n```python\r\nclass Category(URLWrapper):\r\n    pass\r\n\r\n\r\nclass Author(URLWrapper):\r\n    pass\r\n```","created_at":"2015-09-15T12:01:45Z","updated_at":"2015-09-15T12:01:45Z","html_url":"https://github.com/getpelican/pelican/pull/1823#discussion_r39501739","pull_request_url":"https://api.github.com/repos/getpelican/pelican/pulls/1823","_links":{"self":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/comments/39501739"},"html":{"href":"https://github.com/getpelican/pelican/pull/1823#discussion_r39501739"},"pull_request":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1823"}}},"pull_request":{"url":"https://api.github.com/repos/getpelican/pelican/pulls/1823","id":44993761,"html_url":"https://github.com/getpelican/pelican/pull/1823","diff_url":"https://github.com/getpelican/pelican/pull/1823.diff","patch_url":"https://github.com/getpelican/pelican/pull/1823.patch","issue_url":"https://api.github.com/repos/getpelican/pelican/issues/1823","number":1823,"state":"open","locked":false,"title":"Add index and author replacement indicators","user":{"login":"onuraslan","id":345828,"avatar_url":"https://avatars.githubusercontent.com/u/345828?v=3","gravatar_id":"","url":"https://api.github.com/users/onuraslan","html_url":"https://github.com/onuraslan","followers_url":"https://api.github.com/users/onuraslan/followers","following_url":"https://api.github.com/users/onuraslan/following{/other_user}","gists_url":"https://api.github.com/users/onuraslan/gists{/gist_id}","starred_url":"https://api.github.com/users/onuraslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onuraslan/subscriptions","organizations_url":"https://api.github.com/users/onuraslan/orgs","repos_url":"https://api.github.com/users/onuraslan/repos","events_url":"https://api.github.com/users/onuraslan/events{/privacy}","received_events_url":"https://api.github.com/users/onuraslan/received_events","type":"User","site_admin":false},"body":"There is no easy way to make a link to index of website created with pelican. This patch is aiming to fix this issue. With this patch we can create links to our index with `[Link]({index})`.\r\n\r\nPatch also adds author replacement indicator. We can create links to author pages with: `[Link]({author}Someone)`.","created_at":"2015-09-14T23:34:43Z","updated_at":"2015-09-15T12:01:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"807cf18f1c239712598b7670a18033836e89c6cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getpelican/pelican/pulls/1823/commits","review_comments_url":"https://api.github.com/repos/getpelican/pelican/pulls/1823/comments","review_comment_url":"https://api.github.com/repos/getpelican/pelican/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getpelican/pelican/issues/1823/comments","statuses_url":"https://api.github.com/repos/getpelican/pelican/statuses/8cebb3207a566ee85a331d8eb5044984b03b4a30","head":{"label":"onuraslan:add-index-and-author-replacement-indicators","ref":"add-index-and-author-replacement-indicators","sha":"8cebb3207a566ee85a331d8eb5044984b03b4a30","user":{"login":"onuraslan","id":345828,"avatar_url":"https://avatars.githubusercontent.com/u/345828?v=3","gravatar_id":"","url":"https://api.github.com/users/onuraslan","html_url":"https://github.com/onuraslan","followers_url":"https://api.github.com/users/onuraslan/followers","following_url":"https://api.github.com/users/onuraslan/following{/other_user}","gists_url":"https://api.github.com/users/onuraslan/gists{/gist_id}","starred_url":"https://api.github.com/users/onuraslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onuraslan/subscriptions","organizations_url":"https://api.github.com/users/onuraslan/orgs","repos_url":"https://api.github.com/users/onuraslan/repos","events_url":"https://api.github.com/users/onuraslan/events{/privacy}","received_events_url":"https://api.github.com/users/onuraslan/received_events","type":"User","site_admin":false},"repo":{"id":42481483,"name":"pelican","full_name":"onuraslan/pelican","owner":{"login":"onuraslan","id":345828,"avatar_url":"https://avatars.githubusercontent.com/u/345828?v=3","gravatar_id":"","url":"https://api.github.com/users/onuraslan","html_url":"https://github.com/onuraslan","followers_url":"https://api.github.com/users/onuraslan/followers","following_url":"https://api.github.com/users/onuraslan/following{/other_user}","gists_url":"https://api.github.com/users/onuraslan/gists{/gist_id}","starred_url":"https://api.github.com/users/onuraslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onuraslan/subscriptions","organizations_url":"https://api.github.com/users/onuraslan/orgs","repos_url":"https://api.github.com/users/onuraslan/repos","events_url":"https://api.github.com/users/onuraslan/events{/privacy}","received_events_url":"https://api.github.com/users/onuraslan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onuraslan/pelican","description":"Static site generator that supports Markdown and reST syntax. Powered by Python.","fork":true,"url":"https://api.github.com/repos/onuraslan/pelican","forks_url":"https://api.github.com/repos/onuraslan/pelican/forks","keys_url":"https://api.github.com/repos/onuraslan/pelican/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onuraslan/pelican/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onuraslan/pelican/teams","hooks_url":"https://api.github.com/repos/onuraslan/pelican/hooks","issue_events_url":"https://api.github.com/repos/onuraslan/pelican/issues/events{/number}","events_url":"https://api.github.com/repos/onuraslan/pelican/events","assignees_url":"https://api.github.com/repos/onuraslan/pelican/assignees{/user}","branches_url":"https://api.github.com/repos/onuraslan/pelican/branches{/branch}","tags_url":"https://api.github.com/repos/onuraslan/pelican/tags","blobs_url":"https://api.github.com/repos/onuraslan/pelican/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onuraslan/pelican/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onuraslan/pelican/git/refs{/sha}","trees_url":"https://api.github.com/repos/onuraslan/pelican/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onuraslan/pelican/statuses/{sha}","languages_url":"https://api.github.com/repos/onuraslan/pelican/languages","stargazers_url":"https://api.github.com/repos/onuraslan/pelican/stargazers","contributors_url":"https://api.github.com/repos/onuraslan/pelican/contributors","subscribers_url":"https://api.github.com/repos/onuraslan/pelican/subscribers","subscription_url":"https://api.github.com/repos/onuraslan/pelican/subscription","commits_url":"https://api.github.com/repos/onuraslan/pelican/commits{/sha}","git_commits_url":"https://api.github.com/repos/onuraslan/pelican/git/commits{/sha}","comments_url":"https://api.github.com/repos/onuraslan/pelican/comments{/number}","issue_comment_url":"https://api.github.com/repos/onuraslan/pelican/issues/comments{/number}","contents_url":"https://api.github.com/repos/onuraslan/pelican/contents/{+path}","compare_url":"https://api.github.com/repos/onuraslan/pelican/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onuraslan/pelican/merges","archive_url":"https://api.github.com/repos/onuraslan/pelican/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onuraslan/pelican/downloads","issues_url":"https://api.github.com/repos/onuraslan/pelican/issues{/number}","pulls_url":"https://api.github.com/repos/onuraslan/pelican/pulls{/number}","milestones_url":"https://api.github.com/repos/onuraslan/pelican/milestones{/number}","notifications_url":"https://api.github.com/repos/onuraslan/pelican/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onuraslan/pelican/labels{/name}","releases_url":"https://api.github.com/repos/onuraslan/pelican/releases{/id}","created_at":"2015-09-14T22:51:07Z","updated_at":"2015-09-14T22:51:08Z","pushed_at":"2015-09-15T11:55:13Z","git_url":"git://github.com/onuraslan/pelican.git","ssh_url":"git@github.com:onuraslan/pelican.git","clone_url":"https://github.com/onuraslan/pelican.git","svn_url":"https://github.com/onuraslan/pelican","homepage":"http://getpelican.com/","size":13623,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getpelican:master","ref":"master","sha":"6465a91b65e5eaed07ff0410fee35691a967e3ef","user":{"login":"getpelican","id":2043492,"avatar_url":"https://avatars.githubusercontent.com/u/2043492?v=3","gravatar_id":"","url":"https://api.github.com/users/getpelican","html_url":"https://github.com/getpelican","followers_url":"https://api.github.com/users/getpelican/followers","following_url":"https://api.github.com/users/getpelican/following{/other_user}","gists_url":"https://api.github.com/users/getpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/getpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getpelican/subscriptions","organizations_url":"https://api.github.com/users/getpelican/orgs","repos_url":"https://api.github.com/users/getpelican/repos","events_url":"https://api.github.com/users/getpelican/events{/privacy}","received_events_url":"https://api.github.com/users/getpelican/received_events","type":"Organization","site_admin":false},"repo":{"id":993110,"name":"pelican","full_name":"getpelican/pelican","owner":{"login":"getpelican","id":2043492,"avatar_url":"https://avatars.githubusercontent.com/u/2043492?v=3","gravatar_id":"","url":"https://api.github.com/users/getpelican","html_url":"https://github.com/getpelican","followers_url":"https://api.github.com/users/getpelican/followers","following_url":"https://api.github.com/users/getpelican/following{/other_user}","gists_url":"https://api.github.com/users/getpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/getpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getpelican/subscriptions","organizations_url":"https://api.github.com/users/getpelican/orgs","repos_url":"https://api.github.com/users/getpelican/repos","events_url":"https://api.github.com/users/getpelican/events{/privacy}","received_events_url":"https://api.github.com/users/getpelican/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getpelican/pelican","description":"Static site generator that supports Markdown and reST syntax. Powered by Python.","fork":false,"url":"https://api.github.com/repos/getpelican/pelican","forks_url":"https://api.github.com/repos/getpelican/pelican/forks","keys_url":"https://api.github.com/repos/getpelican/pelican/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getpelican/pelican/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getpelican/pelican/teams","hooks_url":"https://api.github.com/repos/getpelican/pelican/hooks","issue_events_url":"https://api.github.com/repos/getpelican/pelican/issues/events{/number}","events_url":"https://api.github.com/repos/getpelican/pelican/events","assignees_url":"https://api.github.com/repos/getpelican/pelican/assignees{/user}","branches_url":"https://api.github.com/repos/getpelican/pelican/branches{/branch}","tags_url":"https://api.github.com/repos/getpelican/pelican/tags","blobs_url":"https://api.github.com/repos/getpelican/pelican/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getpelican/pelican/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getpelican/pelican/git/refs{/sha}","trees_url":"https://api.github.com/repos/getpelican/pelican/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getpelican/pelican/statuses/{sha}","languages_url":"https://api.github.com/repos/getpelican/pelican/languages","stargazers_url":"https://api.github.com/repos/getpelican/pelican/stargazers","contributors_url":"https://api.github.com/repos/getpelican/pelican/contributors","subscribers_url":"https://api.github.com/repos/getpelican/pelican/subscribers","subscription_url":"https://api.github.com/repos/getpelican/pelican/subscription","commits_url":"https://api.github.com/repos/getpelican/pelican/commits{/sha}","git_commits_url":"https://api.github.com/repos/getpelican/pelican/git/commits{/sha}","comments_url":"https://api.github.com/repos/getpelican/pelican/comments{/number}","issue_comment_url":"https://api.github.com/repos/getpelican/pelican/issues/comments{/number}","contents_url":"https://api.github.com/repos/getpelican/pelican/contents/{+path}","compare_url":"https://api.github.com/repos/getpelican/pelican/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getpelican/pelican/merges","archive_url":"https://api.github.com/repos/getpelican/pelican/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getpelican/pelican/downloads","issues_url":"https://api.github.com/repos/getpelican/pelican/issues{/number}","pulls_url":"https://api.github.com/repos/getpelican/pelican/pulls{/number}","milestones_url":"https://api.github.com/repos/getpelican/pelican/milestones{/number}","notifications_url":"https://api.github.com/repos/getpelican/pelican/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getpelican/pelican/labels{/name}","releases_url":"https://api.github.com/repos/getpelican/pelican/releases{/id}","created_at":"2010-10-16T18:57:40Z","updated_at":"2015-09-15T08:43:14Z","pushed_at":"2015-09-15T11:55:13Z","git_url":"git://github.com/getpelican/pelican.git","ssh_url":"git@github.com:getpelican/pelican.git","clone_url":"https://github.com/getpelican/pelican.git","svn_url":"https://github.com/getpelican/pelican","homepage":"http://getpelican.com/","size":13623,"stargazers_count":4983,"watchers_count":4983,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1135,"mirror_url":null,"open_issues_count":146,"forks":1135,"open_issues":146,"watchers":4983,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1823"},"html":{"href":"https://github.com/getpelican/pelican/pull/1823"},"issue":{"href":"https://api.github.com/repos/getpelican/pelican/issues/1823"},"comments":{"href":"https://api.github.com/repos/getpelican/pelican/issues/1823/comments"},"review_comments":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1823/comments"},"review_comment":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getpelican/pelican/pulls/1823/commits"},"statuses":{"href":"https://api.github.com/repos/getpelican/pelican/statuses/8cebb3207a566ee85a331d8eb5044984b03b4a30"}}}}