uci-hugo-landingpage/layouts/shortcodes/embed.html

24 lines
685 B
HTML
Raw Normal View History

<!-- Used for embedding iframes from sites like youtube and google -->
2017-03-10 22:59:27 -08:00
{{ if .IsNamedParams }}
<div class="box box--embed box--{{ .Get "type" }}">
{{ with .Get "title" }}
<div class="box__title">{{ . }}</div>
{{ end }}
<div
{{ with .Get "type" }} class="embed--{{ . }}"{{end}}
{{ with .Get "id" }} id="{{ . }}"{{end}}
{{ with .Get "maxwidth"}} maxWidth="{{ . }}"{{ end }}
{{ with .Get "wpad"}} wPad="{{ . }}"{{ end }}
>
{{ .Inner }}
</div>
{{ with .Get "caption"}}
<div class="box__caption">{{ . }}</div>
{{ end }}
</div>
{{ else }}
<div class="box box--embed box--{{ .Get 0 }}">
{{ .Inner }}
2017-03-10 22:59:27 -08:00
</div>
{{ end }}