cupper-hugo-theme/themes/infusion/layouts/shortcodes/jsBin.html
Heydon Pickering 639dacb531 jsBin embedding
2017-07-26 15:53:09 +01:00

6 lines
294 B
HTML

{{ if .IsNamedParams }}
<iframe src="https://jsbin.com/{{ .Get "id" }}/embed?{{ .Get "show" }}" title="JS Bin demo" height="300" width="100%"></iframe>
{{ else }}
<iframe src="https://jsbin.com/{{ .Get "id" }}/embed?output" title="JS Bin demo" height="300" width="100%"></iframe>
{{ end }}