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

17 lines
434 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 }}
{{ .Inner }}
{{ 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 }}