From 25f2c851012f5ba2653309cc14ff861ffe572a36 Mon Sep 17 00:00:00 2001 From: jkurdziel Date: Fri, 7 Oct 2022 21:25:57 +0200 Subject: [PATCH] fix: bugfix bug_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 }}