{"action":"created","issue":{"url":"https://api.github.com/repos/InkProject/ink/issues/61","repository_url":"https://api.github.com/repos/InkProject/ink","labels_url":"https://api.github.com/repos/InkProject/ink/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/InkProject/ink/issues/61/comments","events_url":"https://api.github.com/repos/InkProject/ink/issues/61/events","html_url":"https://github.com/InkProject/ink/issues/61","id":187763683,"number":61,"title":"How to contribute?","user":{"login":"solarhell","id":10279583,"avatar_url":"https://avatars.githubusercontent.com/u/10279583?v=3","gravatar_id":"","url":"https://api.github.com/users/solarhell","html_url":"https://github.com/solarhell","followers_url":"https://api.github.com/users/solarhell/followers","following_url":"https://api.github.com/users/solarhell/following{/other_user}","gists_url":"https://api.github.com/users/solarhell/gists{/gist_id}","starred_url":"https://api.github.com/users/solarhell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solarhell/subscriptions","organizations_url":"https://api.github.com/users/solarhell/orgs","repos_url":"https://api.github.com/users/solarhell/repos","events_url":"https://api.github.com/users/solarhell/events{/privacy}","received_events_url":"https://api.github.com/users/solarhell/received_events","type":"User","site_admin":false},"labels":[{"id":298236764,"url":"https://api.github.com/repos/InkProject/ink/labels/doing","name":"doing","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T16:47:14Z","updated_at":"2016-11-08T03:03:53Z","closed_at":null,"body":"For example, i want to add one option in `config.yaml` and add one template in theme folder,\r\ni have already modified `parser.go` 's `SiteConfig` and just can't let my template condition judgement work.\r\narticel.html\r\n```html\r\n{{template \"moe\" .}}\r\n```\r\n_moe.html\r\n```go\r\n{{if .Site.Moe}}\r\nbalabala\r\n{{end}}\r\n```\r\nconfig.yml\r\n```\r\nsite:\r\n    ...\r\n    moe: true\r\n```\r\nparser.go\r\n```\r\ntype SiteConfig struct {\r\n\t...\r\n\tMoe      bool\r\n```\r\n\r\nif i run `ink preview`, the console said\r\n```\r\ntemplate: article:148:33: executing \"moe\" at <.Site.Moe>: can't evaluate field Moe in type main.SiteConfig\r\n```"},"comment":{"url":"https://api.github.com/repos/InkProject/ink/issues/comments/259032526","html_url":"https://github.com/InkProject/ink/issues/61#issuecomment-259032526","issue_url":"https://api.github.com/repos/InkProject/ink/issues/61","id":259032526,"user":{"login":"imeoer","id":1524576,"avatar_url":"https://avatars.githubusercontent.com/u/1524576?v=3","gravatar_id":"","url":"https://api.github.com/users/imeoer","html_url":"https://github.com/imeoer","followers_url":"https://api.github.com/users/imeoer/followers","following_url":"https://api.github.com/users/imeoer/following{/other_user}","gists_url":"https://api.github.com/users/imeoer/gists{/gist_id}","starred_url":"https://api.github.com/users/imeoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imeoer/subscriptions","organizations_url":"https://api.github.com/users/imeoer/orgs","repos_url":"https://api.github.com/users/imeoer/repos","events_url":"https://api.github.com/users/imeoer/events{/privacy}","received_events_url":"https://api.github.com/users/imeoer/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T03:03:53Z","updated_at":"2016-11-08T03:03:53Z","body":"Hi @solarhell, seems you haven't re-build after modify code."}}
{"actor":{"display_login":"imeoer"}}