add caption option

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

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



Loading…
Cancel
Save