From e1618eebc7040fc87127a70d4bcaf8e1553e3233 Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Thu, 11 Mar 2021 16:16:51 -0500 Subject: [PATCH] Fix to the hero so you can have the image named anything you want --- 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 0a10d0a..98ac06e 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -1,5 +1,5 @@ {{/* check if there is any hero image in the same folder as the markdown file */}} -{{ $heroImage := .Page.Resources.GetMatch "hero.{jpg,png,svg}"}} +{{ $heroImage := .Page.Resources.GetMatch .Params.hero}} {{ .Scratch.Set "heroScratch" $heroImage }} {{/* if hero image is not provided, then use the default hero image */}}