Accessing page resources by name?

There are several good resources about the “context” or “the mystery of the dot” out there, but the short story here is that “.Resources” will not work here.

If you do:

{{ with .Site.GetPage "accreditations/index.md" }}
$resources := .Resources
...

 {{ $img := $resources.Match (.image) }}

1 Like