{"action":"closed","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/2498","repository_url":"https://api.github.com/repos/spf13/hugo","labels_url":"https://api.github.com/repos/spf13/hugo/issues/2498/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/2498/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/2498/events","html_url":"https://github.com/spf13/hugo/issues/2498","id":179494988,"number":2498,"title":"Self-closing syntax and parameters throw error: unclosed shortcode","user":{"login":"dmitriid","id":32768,"avatar_url":"https://avatars.githubusercontent.com/u/32768?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriid","html_url":"https://github.com/dmitriid","followers_url":"https://api.github.com/users/dmitriid/followers","following_url":"https://api.github.com/users/dmitriid/following{/other_user}","gists_url":"https://api.github.com/users/dmitriid/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriid/subscriptions","organizations_url":"https://api.github.com/users/dmitriid/orgs","repos_url":"https://api.github.com/users/dmitriid/repos","events_url":"https://api.github.com/users/dmitriid/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/kind/bug","name":"kind/bug","color":"D49392"}],"state":"closed","locked":false,"assignee":{"login":"bep","id":394382,"avatar_url":"https://avatars.githubusercontent.com/u/394382?v=3","gravatar_id":"","url":"https://api.github.com/users/bep","html_url":"https://github.com/bep","followers_url":"https://api.github.com/users/bep/followers","following_url":"https://api.github.com/users/bep/following{/other_user}","gists_url":"https://api.github.com/users/bep/gists{/gist_id}","starred_url":"https://api.github.com/users/bep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bep/subscriptions","organizations_url":"https://api.github.com/users/bep/orgs","repos_url":"https://api.github.com/users/bep/repos","events_url":"https://api.github.com/users/bep/events{/privacy}","received_events_url":"https://api.github.com/users/bep/received_events","type":"User","site_admin":false},"assignees":[{"login":"bep","id":394382,"avatar_url":"https://avatars.githubusercontent.com/u/394382?v=3","gravatar_id":"","url":"https://api.github.com/users/bep","html_url":"https://github.com/bep","followers_url":"https://api.github.com/users/bep/followers","following_url":"https://api.github.com/users/bep/following{/other_user}","gists_url":"https://api.github.com/users/bep/gists{/gist_id}","starred_url":"https://api.github.com/users/bep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bep/subscriptions","organizations_url":"https://api.github.com/users/bep/orgs","repos_url":"https://api.github.com/users/bep/repos","events_url":"https://api.github.com/users/bep/events{/privacy}","received_events_url":"https://api.github.com/users/bep/received_events","type":"User","site_admin":false}],"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":2,"closed_issues":49,"state":"open","created_at":"2016-05-13T09:23:41Z","updated_at":"2016-09-27T19:11:34Z","due_on":"2016-09-21T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-09-27T13:36:25Z","updated_at":"2016-09-27T19:11:34Z","closed_at":"2016-09-27T19:11:34Z","body":"Here's the code for `image` shortcode:\r\n\r\n```html\r\n{{- $author := .Get \"author\" -}}\r\n{{- $description := .Get \"description\" -}}\r\n{{- $src := .Get \"src\" -}}\r\n{{- $link := .Get \"link\" -}}\r\n<figure class=\"image\">\r\n  <img src=\"{{ $src }}\"{{ with $description }} alt=\"{{ . }}\"{{ end }} />\r\n  {{- if $description | or $author | or (gt (len .Inner) 0) -}}\r\n  <figcaption>\r\n    <cite>\r\n      {{ if gt (len .Inner) 0 }}{{ .Inner }}{{ end }}\r\n      {{ with $author }}{{ if $link }}<a href=\"{{ $link }}\">{{ end }}{{ . }}{{ if $link }}</a>{{ end }} {{ end }}{{ with $description }}<em>{{ . }}</em>{{ end }}\r\n    </cite>\r\n  </figcaption>\r\n  {{- end -}}\r\n</figure>\r\n```\r\nHere's the code that throws errors:\r\n\r\n```\r\n{{< image src=\"https://c1.staticflickr.com/9/8426/29316998152_07355d7b6b_z.jpg\" author=\"Joao\" description=\"Hear me roar\" link=\"twitter.com\" />}}\r\n\r\n{{< image src=\"https://c1.staticflickr.com/9/8426/29316998152_07355d7b6b_z.jpg\" author=\"Joao\" description=\"Hear me roar\" link=\"twitter.com\" />}}\r\n```\r\n\r\nThe first usage of the shortcode will throw: \r\n\r\n> ERROR: 2016/09/27 15:25:56 shortcode.go:284: in-vino-veritas:73: unclosed shortcode\r\n\r\nReplace the above with:\r\n\r\n```\r\n{{< image src=\"https://c1.staticflickr.com/9/8426/29316998152_07355d7b6b_z.jpg\" author=\"Joao\" description=\"Hear me roar\" link=\"twitter.com\" >}}{{</ image >}}\r\n\r\n{{< image src=\"https://c1.staticflickr.com/9/8426/29316998152_07355d7b6b_z.jpg\" author=\"Joao\" description=\"Hear me roar\" link=\"twitter.com\" />}}\r\n```\r\n\r\nAnd it works. However, adding anything after the last shortcode will lead to the same issue, and it, too, will need a `{{</ image >}}`"}}
{"actor":{"display_login":"bep"}}