From 32c5c04632d20cb05d3d44df191d0588441a2bd3 Mon Sep 17 00:00:00 2001 From: Alexandre Neto Date: Sat, 15 Oct 2022 18:18:50 +0100 Subject: [PATCH] Allow custom hero images Fixes #379 (#670) Co-authored-by: Emruz Hossain --- 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 }}