From 4bea73b88214c85678a5352da1786e4e9123b44d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 15:18:02 +0000 Subject: [PATCH 1/2] Update and run autoprefixer (#247) Co-authored-by: hossainemruz Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> From 88895c50c2b7c390a454ff376f5f9083f163df8a Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Sat, 13 Mar 2021 08:48:52 -0500 Subject: [PATCH 2/2] Fix to the hero so you can have the image named anything you want (#248) * Fix to the hero so you can have the image named anything you want * Keep backward compatibility Signed-off-by: hossainemruz Co-authored-by: hossainemruz --- layouts/partials/helpers/get-hero.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html index 0a10d0a..d253f85 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -1,5 +1,10 @@ {{/* check if there is any hero image in the same folder as the markdown file */}} {{ $heroImage := .Page.Resources.GetMatch "hero.{jpg,png,svg}"}} + +{{/* if hero image is specified in the page front-matter, then use that */}} +{{ if .Params.hero }} + {{ $heroImage = .Page.Resources.GetMatch .Params.hero }} +{{ end }} {{ .Scratch.Set "heroScratch" $heroImage }} {{/* if hero image is not provided, then use the default hero image */}}