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 hero image is specified in the page front-matter, then use that */}}
|
||||||
{{ if .Params.hero }}
|
{{ if .Params.hero }}
|
||||||
{{ $heroImage = .Page.Resources.GetMatch .Params.hero }}
|
{{ $heroImage = resources.Get .Params.hero }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Scratch.Set "heroScratch" $heroImage }}
|
{{ .Scratch.Set "heroScratch" $heroImage }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user