From 36662ef4d3993b3fa6e7a1fa9519172cb68c1e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sapka?= Date: Thu, 19 Jan 2023 22:33:36 +0100 Subject: feat:article for 2023-01-19 --- layouts/shortcodes/imgproc.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'layouts/shortcodes/imgproc.html') diff --git a/layouts/shortcodes/imgproc.html b/layouts/shortcodes/imgproc.html index c8f75c2..f271fd6 100644 --- a/layouts/shortcodes/imgproc.html +++ b/layouts/shortcodes/imgproc.html @@ -1,6 +1,8 @@ {{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }} {{ $command := .Get 1 }} {{ $options := .Get 2 }} +{{ $caption := .Get 3 }} +{{ $source := .Get 4 }} {{ if eq $command "Fit"}} {{ $img = $img.Fit $options }} {{ else if eq $command "Resize"}} @@ -15,6 +17,10 @@
- {{.Get 3}} + {{ $caption }} + + {{- if $source }} + [source] + {{ end }}
-- cgit v1.2.3