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

21 lines
511 B
HTML
Raw Normal View History

2017-03-10 22:59:27 -08:00
<!-- parameter map url -->
{{ if .IsNamedParams }}
<div class="box box--{{ .Get "type" }}">
{{ with .Get "title" }}
<div class="box__title">{{ . }}</div>
{{ end }}
2017-03-10 22:59:27 -08:00
<div class="box__embed box__embed--{{ .Get "type" }}">
{{ .Inner }}
</div>
{{ with .Get "caption"}}
<div class="box__caption">{{ . }}</div>
{{ end }}
</div>
{{ else }}
2017-03-10 22:59:27 -08:00
<div class="box box--{{ .Get 0 }}">
<div class="box__embed box__embed--{{ .Get 0 }}">
{{ .Inner }}
</div>
2017-03-10 22:59:27 -08:00
</div>
{{ end }}