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 */}}