Skip to content

Commit

Permalink
Allow custom hero images Fixes #379 (#670)
Browse files Browse the repository at this point in the history
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
  • Loading branch information
SrNetoChan and hossainemruz authored Oct 15, 2022
1 parent c52b1f8 commit 32c5c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/helpers/get-hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 32c5c04

Please sign in to comment.