Selaa lähdekoodia

Allow custom hero images Fixes #379 (#670)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Alexandre Neto 2 vuotta sitten
vanhempi
commit
32c5c04632
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      layouts/partials/helpers/get-hero.html

+ 1 - 1
layouts/partials/helpers/get-hero.html

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