more little hugo things

This commit is contained in:
2023-03-09 22:21:44 +01:00
parent a867dbba96
commit 3998fc265e
9 changed files with 12 additions and 4 deletions
+6
View File
@@ -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 }}">