Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
c52b1f8dcc
commit
32c5c04632
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue