Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user