more little hugo things
This commit is contained in:
@@ -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 }}">
|
||||
Reference in New Issue
Block a user