blob: 3b211ff9cec055ea0b285be0315b38fbc6a42596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{- $imageFile := print "public" (.Get `source`) -}}
{{- $image := imageConfig $imageFile -}}
<figure>
<a href="{{ .Get `source` }}" onclick="return false;">
<img data-image-zoom
src="{{ .Get `source` }}"
alt="{{ .Get `title` }}"
title="{{ .Get `title` }}"
width="{{ $image.Width }}"
height="{{ $image.Height }}"
/>
</a>
<figcaption>{{ .Inner | markdownify }}</figcaption>
</figure>
|