Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/helpers/get-hero.html')
-rw-r--r--layouts/partials/helpers/get-hero.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html
index d253f85..ece8a89 100644
--- a/layouts/partials/helpers/get-hero.html
+++ b/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 }}