{"action":"created","issue":{"url":"https://api.github.com/repos/holidaypirates/nucleus/issues/27","repository_url":"https://api.github.com/repos/holidaypirates/nucleus","labels_url":"https://api.github.com/repos/holidaypirates/nucleus/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/holidaypirates/nucleus/issues/27/comments","events_url":"https://api.github.com/repos/holidaypirates/nucleus/issues/27/events","html_url":"https://github.com/holidaypirates/nucleus/issues/27","id":183900266,"number":27,"title":"Config for alternative substitute image.","user":{"login":"Rhym","id":1136811,"avatar_url":"https://avatars.githubusercontent.com/u/1136811?v=3","gravatar_id":"","url":"https://api.github.com/users/Rhym","html_url":"https://github.com/Rhym","followers_url":"https://api.github.com/users/Rhym/followers","following_url":"https://api.github.com/users/Rhym/following{/other_user}","gists_url":"https://api.github.com/users/Rhym/gists{/gist_id}","starred_url":"https://api.github.com/users/Rhym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rhym/subscriptions","organizations_url":"https://api.github.com/users/Rhym/orgs","repos_url":"https://api.github.com/users/Rhym/repos","events_url":"https://api.github.com/users/Rhym/events{/privacy}","received_events_url":"https://api.github.com/users/Rhym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T08:42:30Z","updated_at":"2016-10-19T16:06:49Z","closed_at":null,"body":"I was wondering if we could have a config for an alternative substitution image. Something like:\r\n\r\nThe config could be something like:\r\n\r\n```\r\n{\r\n  \"alternativeImage\": \"`http://placehold.it/${width}x${height}`\"\r\n}\r\n```\r\n\r\nAnd the code.\r\n\r\n```\r\nSubstitute.methods.image = function (width, height) {\r\n  if(this.alternativeImage) {\r\n    return `${this.alternativeImage}`;\r\n  } else {\r\n    return 'https://unsplash.it/'+width+'/'+height+(this.staticLipsum ? '' : '?random=' + Math.random()) ;\r\n  }\r\n};\r\n```\r\n\r\nOr something similar. Would love to know your thoughts. I'd be happy to make a pull request too."},"comment":{"url":"https://api.github.com/repos/holidaypirates/nucleus/issues/comments/254860261","html_url":"https://github.com/holidaypirates/nucleus/issues/27#issuecomment-254860261","issue_url":"https://api.github.com/repos/holidaypirates/nucleus/issues/27","id":254860261,"user":{"login":"Rhym","id":1136811,"avatar_url":"https://avatars.githubusercontent.com/u/1136811?v=3","gravatar_id":"","url":"https://api.github.com/users/Rhym","html_url":"https://github.com/Rhym","followers_url":"https://api.github.com/users/Rhym/followers","following_url":"https://api.github.com/users/Rhym/following{/other_user}","gists_url":"https://api.github.com/users/Rhym/gists{/gist_id}","starred_url":"https://api.github.com/users/Rhym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rhym/subscriptions","organizations_url":"https://api.github.com/users/Rhym/orgs","repos_url":"https://api.github.com/users/Rhym/repos","events_url":"https://api.github.com/users/Rhym/events{/privacy}","received_events_url":"https://api.github.com/users/Rhym/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T16:06:49Z","updated_at":"2016-10-19T16:06:49Z","body":"I have made a pull request for this, if you're happy to merge: #28 "}}
{"actor":{"display_login":"Rhym"}}