Using page resources

Welcome to the wonders of Hugo :wink:

I basically copied the recipe from Get image by resource name using images.inline shortcode, posting #3.

Content document:

---
description: September | Images
resources:
  - name: de_kiel1
    src: de_kiel1.png
    title: De Kiel, 29 september 2018
---

{{< image name="de_kiel1" size="600px" >}}

shortcode:

{{ $name := .Get "name" }}
{{ $size := .Get "size" }}
{{ $match := printf "*%s*" $name }}
{{ $img := .Page.Resources.GetMatch $match }}
{{ $img := $img.Resize $size }}

<img 
class="img-fluid"
src="{{ $img.Permalink }}">

Error:

Error: Error building site: "/bulk/tmp/quickstart/content/pictures/index.html:11:1": failed to render shortcode "image": failed to process shortcode: "/bulk/tmp/quickstart/themes/september/layouts/shortcodes/image.html:5:15": execute of template failed: template: shortcodes/image.html:5:15: executing "shortcodes/image.html" at <$img.Resize>: nil pointer evaluating resource.Resource.Resize

I still seem to miss a stepโ€ฆ