21 lines
511 B
HTML
21 lines
511 B
HTML
<!-- parameter map url -->
|
|
{{ if .IsNamedParams }}
|
|
<div class="box box--{{ .Get "type" }}">
|
|
{{ with .Get "title" }}
|
|
<div class="box__title">{{ . }}</div>
|
|
{{ end }}
|
|
<div class="box__embed box__embed--{{ .Get "type" }}">
|
|
{{ .Inner }}
|
|
</div>
|
|
{{ with .Get "caption"}}
|
|
<div class="box__caption">{{ . }}</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ else }}
|
|
<div class="box box--{{ .Get 0 }}">
|
|
<div class="box__embed box__embed--{{ .Get 0 }}">
|
|
{{ .Inner }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|