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 }}
|
|
|
|
<div class="box box--column box--image">
|
|
|
|
{{ with .Get "title" }}
|
|
|
|
<div class="box__title">{{ . }}</div>
|
|
|
|
{{ end }}
|
2017-04-18 22:12:41 -07:00
|
|
|
{{ with .Get "link"}}
|
|
|
|
{{ if eq . "modal" }}<a href="{{ $path }}{{ $filename }}">{{ else }}<a href="{{.}}">{{ end }}
|
|
|
|
{{ 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>
|