From dbcfe32bd66c25b6e9e545fc2f4439e34d711327 Mon Sep 17 00:00:00 2001 From: Alexandre Neto Date: Sat, 15 Oct 2022 17:53:21 +0100 Subject: [PATCH] Allow custom hero images Fixes #379 --- layouts/partials/helpers/get-hero.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html index d253f85..ece8a89 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -3,7 +3,7 @@ {{/* if hero image is specified in the page front-matter, then use that */}} {{ if .Params.hero }} - {{ $heroImage = .Page.Resources.GetMatch .Params.hero }} + {{ $heroImage = resources.Get .Params.hero }} {{ end }} {{ .Scratch.Set "heroScratch" $heroImage }}