add caption option

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1694325531840976419/master
Toshaan Bharvani 1 year ago
parent 337c6b80df
commit 6c251b8bdc

@ -12,4 +12,9 @@
{{ $imageprocessing := (printf "%sx%s %s" $width $height "webp") }}
{{ $image := $imageresource.Fit $imageprocessing }}
<img src="{{ $image.RelPermalink }}">
{{ with .Get "caption" }}
<br>
<i>{{ . }}</i>
<br>
{{ end }}


Loading…
Cancel
Save