From b7a187917bb326f10206b8730924e8b07821b6a8 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Wed, 29 Jan 2020 12:45:05 +0700 Subject: [PATCH] add local position var --- layouts/shortcodes/imgproc.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/imgproc.html b/layouts/shortcodes/imgproc.html index 662a37c..6681b0a 100644 --- a/layouts/shortcodes/imgproc.html +++ b/layouts/shortcodes/imgproc.html @@ -1,6 +1,7 @@ {{ $original := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }} {{ $command := .Get 1 }} {{ $options := .Get 2 }} +{{ $position := .Get 3}} {{ if eq $command "Fit"}} {{ .Scratch.Set "image" ($original.Fit $options) }} @@ -14,7 +15,7 @@ {{ $image := .Scratch.Get "image" }} -
+
{{ with .Inner }}