diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-06 17:53:17 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-06 17:53:17 +0200 |
commit | 0efd374805ac49a0e6513c707520fc2f6f238afc (patch) | |
tree | a8c6a8862574bc41b7f60eeda8679c4cd70a79a2 /docs/layouts | |
parent | 2b8d907ab731627f4e2a30442cd729064516c8bb (diff) | |
parent | 98293eaa1570b5aff4452021c8b6d6c8560b3f06 (diff) |
Merge commit '98293eaa1570b5aff4452021c8b6d6c8560b3f06'
Diffstat (limited to 'docs/layouts')
-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 }} |