fix(images): use the right resource loader function and others things
This commit is contained in:
parent
303b5f04ab
commit
741ba5c10e
3 changed files with 19 additions and 17 deletions
|
|
@ -13,7 +13,7 @@
|
|||
<!-- Is an external image -->
|
||||
{{ $result = merge $result (dict "permalink" $imageValue) }}
|
||||
{{ else }}
|
||||
{{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }}
|
||||
{{ $pageResourceImage := resources.GetMatch (printf "%s" ($imageValue | safeURL)) }}
|
||||
|
||||
{{ if $pageResourceImage }}
|
||||
<!-- If image is found under page bundle -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue