Allow custom hero images Fixes #379

This commit is contained in:
Alexandre Neto 2022-10-15 17:53:21 +01:00
parent 1f17e61ad6
commit dbcfe32bd6

View file

@ -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 }}