diff --git a/layouts/partials/figure.html b/layouts/partials/figure.html index 1d0804f..8afdffc 100644 --- a/layouts/partials/figure.html +++ b/layouts/partials/figure.html @@ -1,7 +1,31 @@ {{ $media := . | resources.Fingerprint "sha512" }} + {{ if eq .MediaType.MainType "image" }} - + + {{ $tiny := $media.Resize "500x" }} + {{ $small := $media.Resize "800x" }} + {{ $medium := $media.Resize "1200x" }} + {{ $large := $media.Resize "1500x" }} + + {{ else if eq .MediaType.MainType "video" }}