2017-03-14 23:20:52 -07:00
|
|
|
|
|
|
|
<figure class="box box--column box--image"
|
2017-02-28 09:56:46 -08:00
|
|
|
{{ with .Get "position" }}class="{{.}}"{{ end }}>
|
|
|
|
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
|
|
|
|
|
|
|
<img src="{{ .Page.Params.imagespath }}{{ .Get "filename" }}"{{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
|
|
|
|
{{ if .Get "link"}}</a>{{ end }}
|
|
|
|
|
2017-03-14 23:20:52 -07:00
|
|
|
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
2017-02-28 09:56:46 -08:00
|
|
|
|
|
|
|
<figcaption>
|
|
|
|
|
|
|
|
{{ if or (.Get "caption") (.Get "attr")}}<p>
|
|
|
|
{{ .Get "caption" }}
|
|
|
|
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
|
|
|
|
{{ .Get "attr" }}
|
|
|
|
{{ if .Get "attrlink"}}</a> {{ end }}
|
|
|
|
</p> {{ end }}
|
|
|
|
|
|
|
|
</figcaption>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</figure>
|