Merge commit '98293eaa1570b5aff4452021c8b6d6c8560b3f06'

This commit is contained in:
Bjørn Erik Pedersen
2018-07-06 17:53:17 +02:00
26 changed files with 270 additions and 56 deletions

View File

@@ -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 }}