more little hugo things
@ -0,0 +1,6 @@
|
||||
|
||||
{{ $original := .Page.Resources.GetByPrefix (.Get 0) }}
|
||||
{{ $options := .Get 1 }}
|
||||
{{ .Scratch.Set "image" ($original.Resize $options) }}
|
||||
{{ $image := .Scratch.Get "image" }}
|
||||
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}">
|
Before Width: | Height: | Size: 730 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 3.9 MiB |