From 02f2b53f642ed69d5f4d94e5e294aa6d030450f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Sat, 25 Feb 2023 19:09:29 +0100 Subject: feat: handle retina for post omages --- layouts/shortcodes/img-pull-right.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'layouts/shortcodes/img-pull-right.html') diff --git a/layouts/shortcodes/img-pull-right.html b/layouts/shortcodes/img-pull-right.html index 8d73f48..4688b59 100644 --- a/layouts/shortcodes/img-pull-right.html +++ b/layouts/shortcodes/img-pull-right.html @@ -1,6 +1,17 @@ {{- $file := .Get 0 }} {{- $path := printf "content_images/%s" $file}} {{- $img := resources.Get $path }} -{{- $img = $img.Resize "150x webp" }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} {{- $caption := .Get 1}} - {{ $caption }} + {{ $caption }} -- cgit v1.2.3