fix: bugfix bug_379

This commit is contained in:
jkurdziel 2022-10-07 21:25:57 +02:00
parent 1f17e61ad6
commit 25f2c85101

View file

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