2017-03-29 19:58:42 -07:00
|
|
|
{{ $path := "/images/" }}
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ $filename := .Get "filename" }}
|
2017-03-29 19:58:42 -07:00
|
|
|
{{ with $.Site.Params.imagespath }} {{ $path := ( . ) }}{{ end }}
|
2017-04-22 16:03:10 -07:00
|
|
|
<div class="box box--column box--image
|
|
|
|
{{ with .Get "link"}}{{ if eq . "lightbox" }} box--image-lightbox{{ end }}{{ end }}
|
|
|
|
"
|
|
|
|
{{ with .Get "maxwidth"}} maxWidth="{{ . }}"{{ end }}
|
|
|
|
{{ with .Get "wpad"}} wPad="{{ . }}"{{ end }}
|
|
|
|
>
|
2017-03-29 19:58:42 -07:00
|
|
|
{{ with .Get "title" }}
|
|
|
|
<div class="box__title">{{ . }}</div>
|
|
|
|
{{ end }}
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ with .Get "link"}}
|
2017-04-22 16:03:10 -07:00
|
|
|
{{ if eq . "lightbox" }}<a href="{{ $path }}{{ $filename }}">{{ else }}<a href="{{.}}" target="_blank" >{{ end }}
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ end }}
|
2017-03-29 19:58:42 -07:00
|
|
|
<img src="{{ $path }}{{ .Get "filename" }}" />
|
2017-02-28 09:56:46 -08:00
|
|
|
{{ if .Get "link"}}</a>{{ end }}
|
2017-03-29 19:58:42 -07:00
|
|
|
{{ with .Get "caption"}}
|
|
|
|
<div class="box__caption">{{ . }}</div>
|
2017-02-28 09:56:46 -08:00
|
|
|
{{ end }}
|
2017-03-29 19:58:42 -07:00
|
|
|
</div>
|