Allow custom hero images Fixes #379
This commit is contained in:
parent
1f17e61ad6
commit
dbcfe32bd6
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