{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1850","repository_url":"https://api.github.com/repos/spf13/hugo","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1850/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1850/events","html_url":"https://github.com/spf13/hugo/pull/1850","id":133416600,"number":1850,"title":"Standardize author data","user":{"login":"derekperkins","id":3588778,"avatar_url":"https://avatars.githubusercontent.com/u/3588778?v=3","gravatar_id":"","url":"https://api.github.com/users/derekperkins","html_url":"https://github.com/derekperkins","followers_url":"https://api.github.com/users/derekperkins/followers","following_url":"https://api.github.com/users/derekperkins/following{/other_user}","gists_url":"https://api.github.com/users/derekperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/derekperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekperkins/subscriptions","organizations_url":"https://api.github.com/users/derekperkins/orgs","repos_url":"https://api.github.com/users/derekperkins/repos","events_url":"https://api.github.com/users/derekperkins/events{/privacy}","received_events_url":"https://api.github.com/users/derekperkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/status/pending%20review","name":"status/pending review","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spf13/hugo/milestones/10","html_url":"https://github.com/spf13/hugo/milestones/v0.17","labels_url":"https://api.github.com/repos/spf13/hugo/milestones/10/labels","id":1764196,"number":10,"title":"v0.17","description":"","creator":{"login":"anthonyfok","id":1274764,"avatar_url":"https://avatars.githubusercontent.com/u/1274764?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyfok","html_url":"https://github.com/anthonyfok","followers_url":"https://api.github.com/users/anthonyfok/followers","following_url":"https://api.github.com/users/anthonyfok/following{/other_user}","gists_url":"https://api.github.com/users/anthonyfok/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyfok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyfok/subscriptions","organizations_url":"https://api.github.com/users/anthonyfok/orgs","repos_url":"https://api.github.com/users/anthonyfok/repos","events_url":"https://api.github.com/users/anthonyfok/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyfok/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":19,"state":"open","created_at":"2016-05-13T09:23:41Z","updated_at":"2016-08-20T19:33:15Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2016-02-13T09:08:57Z","updated_at":"2016-08-22T15:54:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/hugo/pulls/1850","html_url":"https://github.com/spf13/hugo/pull/1850","diff_url":"https://github.com/spf13/hugo/pull/1850.diff","patch_url":"https://github.com/spf13/hugo/pull/1850.patch"},"body":"Here's the first attempt at standardizing Hugo author details.\r\n\r\n1. Data lives in `/data/authors` with one file per author. I thought about nesting it in `/data/site/authors` or `/data/hugo/authors`, but those seemed unnecessarily hidden.\r\n1. Author front matter is an array to support multiple authors, though it will be up to themes to support multiple authors or not. There is a convenience `.Author` method to return a single author. \r\n_if there are multiple authors and this is used, there is no guarantee which author will be returned_\r\n1. I changed `.Site.Author` from `map[string]interface{}` to `Author`, though I don't know if that is in use outside of the embedded RSS feed\r\n1. Social data should only be the username\r\n1. For Author social details, I added a `.URL()` convenience method that returns canonical urls for major social networks\r\n1. I added a params section to the author, though as of right now it is `map[string]string` instead of `map[string]interface{}`\r\n1. I use snake_case in the data files but templates will access them with PascalCase\r\n1. Here's a sample author file\r\n```\r\ngiven_name\t\t= \"Derek\"\r\nfamily_name\t\t= \"Perkins\"\r\ndisplay_name\t= \"Derek Perkins\"\r\nthumbnail\t\t= \"img link\"\r\nimage\t\t\t= \"img link\"\r\nshort_bio\t\t= \"super short bio\"\r\nbio\t\t\t\t= \"Here's Derek's awesome bio\"\r\nemail\t\t\t= \"derek@email.com\"\r\n\r\n[social]\r\n\tfacebook\t= \"derekperkins\"\r\n\tgithub\t\t= \"derekperkins\"\r\n\ttwitter\t\t= \"derek_perkins\"\r\n\tgoogleplus\t= \"DerekPerkins1\"\r\n\r\n[params]\r\n   random\t\t= \"whatever you want\"\r\n```"},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/241459125","html_url":"https://github.com/spf13/hugo/pull/1850#issuecomment-241459125","issue_url":"https://api.github.com/repos/spf13/hugo/issues/1850","id":241459125,"user":{"login":"digitalcraftsman","id":7010165,"avatar_url":"https://avatars.githubusercontent.com/u/7010165?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalcraftsman","html_url":"https://github.com/digitalcraftsman","followers_url":"https://api.github.com/users/digitalcraftsman/followers","following_url":"https://api.github.com/users/digitalcraftsman/following{/other_user}","gists_url":"https://api.github.com/users/digitalcraftsman/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalcraftsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalcraftsman/subscriptions","organizations_url":"https://api.github.com/users/digitalcraftsman/orgs","repos_url":"https://api.github.com/users/digitalcraftsman/repos","events_url":"https://api.github.com/users/digitalcraftsman/events{/privacy}","received_events_url":"https://api.github.com/users/digitalcraftsman/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T15:54:58Z","updated_at":"2016-08-22T15:54:58Z","body":"I added some documentation to my branch for this feature."}}
{"actor":{"display_login":"digitalcraftsman"}}