16 lines
532 B
HTML
16 lines
532 B
HTML
{{ $path := "/images/" }}
|
|
{{ $filename := .Get "filename" }}
|
|
{{ with $.Site.Params.imagespath }} {{ $path := ( . ) }}{{ end }}
|
|
<div class="box box--column box--image">
|
|
{{ with .Get "title" }}
|
|
<div class="box__title">{{ . }}</div>
|
|
{{ end }}
|
|
{{ with .Get "link"}}
|
|
{{ if eq . "modal" }}<a href="{{ $path }}{{ $filename }}">{{ else }}<a href="{{.}}">{{ end }}
|
|
{{ end }}
|
|
<img src="{{ $path }}{{ .Get "filename" }}" />
|
|
{{ if .Get "link"}}</a>{{ end }}
|
|
{{ with .Get "caption"}}
|
|
<div class="box__caption">{{ . }}</div>
|
|
{{ end }}
|
|
</div>
|