2017-04-03 11:39:23 -07:00
|
|
|
<!-- Used for embedding iframes from sites like youtube and google -->
|
2017-03-10 22:59:27 -08:00
|
|
|
{{ if .IsNamedParams }}
|
2017-04-18 22:12:41 -07:00
|
|
|
<div class="box box--embed box--{{ .Get "type" }}">
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ with .Get "title" }}
|
|
|
|
<div class="box__title">{{ . }}</div>
|
|
|
|
{{ end }}
|
2017-04-19 14:10:18 -07:00
|
|
|
<div
|
|
|
|
{{ with .Get "type" }} class="embed--{{ . }}"{{end}}
|
|
|
|
{{ with .Get "id" }} id="{{ . }}"{{end}}
|
|
|
|
{{ with .Get "maxwidth"}} maxWidth="{{ . }}"{{ end }}
|
|
|
|
{{ with .Get "wpad"}} wPad="{{ . }}"{{ end }}
|
|
|
|
>
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ .Inner }}
|
2017-04-19 14:10:18 -07:00
|
|
|
</div>
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ with .Get "caption"}}
|
|
|
|
<div class="box__caption">{{ . }}</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
2017-04-20 20:18:53 -07:00
|
|
|
<div class="box box--embed {{ with .Get 0 }}embed--{{ . }}{{ end }}">
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ .Inner }}
|
2017-03-10 22:59:27 -08:00
|
|
|
</div>
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ end }}
|