diff options
Diffstat (limited to 'docs/layouts/shortcodes')
-rw-r--r-- | docs/layouts/shortcodes/imgproc.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/layouts/shortcodes/imgproc.html b/docs/layouts/shortcodes/imgproc.html index 6ff73e1f9..f44b509c2 100644 --- a/docs/layouts/shortcodes/imgproc.html +++ b/docs/layouts/shortcodes/imgproc.html @@ -1,4 +1,4 @@ -{{ $original := .Page.Resources.GetMatch (printf "%s*" (.Get 0)) }} +{{ $original := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }} {{ $command := .Get 1 }} {{ $options := .Get 2 }} {{ if eq $command "Fit"}} @@ -11,8 +11,8 @@ {{ errorf "Invalid image processing command: Must be one of Fit, Fill or Resize."}} {{ end }} {{ $image := .Scratch.Get "image" }} -<figure style="width: {{ add $image.Width 3 }}px; padding: 3px; background-color: #cccc"> - <img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}"> +<figure style="padding: 0.25rem; margin: 2rem 0; background-color: #cccc"> + <img style="max-width: 100%; height: auto;" src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}"> <figcaption> <small> {{ with .Inner }} |