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