2017-03-10 22:59:27 -08:00
|
|
|
<!-- parameter map url -->
|
|
|
|
{{ if .IsNamedParams }}
|
|
|
|
<div class="box box--{{ .Get "type" }}">
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ 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>
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ 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 }}">
|
2017-03-12 11:05:18 -07:00
|
|
|
<div class="box__embed box__embed--{{ .Get 0 }}">
|
|
|
|
{{ .Inner }}
|
|
|
|
</div>
|
2017-03-10 22:59:27 -08:00
|
|
|
</div>
|
2017-03-12 11:05:18 -07:00
|
|
|
{{ end }}
|