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:
authorAlexandre Neto <senhor.neto@gmail.com>2022-10-15 20:18:50 +0300
committerGitHub <noreply@github.com>2022-10-15 20:18:50 +0300
commit32c5c04632d20cb05d3d44df191d0588441a2bd3 (patch)
tree2b7235e4cf1f0e9c7ed46907f82dcb36a6c9a327
parentc52b1f8dcc8372a58b98d6dd75ef91f6c6af8b63 (diff)
Allow custom hero images Fixes #379 (#670)
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
-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 }}