Fix to the hero so you can have the image named anything you want
This commit is contained in:
parent
4bea73b882
commit
e1618eebc7
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
{{/* check if there is any hero image in the same folder as the markdown file */}}
|
{{/* check if there is any hero image in the same folder as the markdown file */}}
|
||||||
{{ $heroImage := .Page.Resources.GetMatch "hero.{jpg,png,svg}"}}
|
{{ $heroImage := .Page.Resources.GetMatch .Params.hero}}
|
||||||
{{ .Scratch.Set "heroScratch" $heroImage }}
|
{{ .Scratch.Set "heroScratch" $heroImage }}
|
||||||
|
|
||||||
{{/* if hero image is not provided, then use the default hero image */}}
|
{{/* if hero image is not provided, then use the default hero image */}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue