diff options
author | it-gro <grossnik@tuvok> | 2018-07-25 12:52:56 +0300 |
---|---|---|
committer | it-gro <grossnik@tuvok> | 2018-07-25 12:52:56 +0300 |
commit | 03345f9b1cea6f348d7f9fad7c6464e089b94f13 (patch) | |
tree | faf6308c0c07f3c758c678704140a6ca18b0259c | |
parent | 931924a2dc6435b92e56103d867eea38f57a264a (diff) |
wip
-rw-r--r-- | layouts/partials/resource.image.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/resource.image.html b/layouts/partials/resource.image.html index 49fb78d..7c786f7 100644 --- a/layouts/partials/resource.image.html +++ b/layouts/partials/resource.image.html @@ -42,7 +42,7 @@ theResImgOpt : {{- $theResImgOpt }} <br/> {{- if $thePage.Param `resImgRelPath`}} {{/* {{- $myResourcePage := $thePage.Site.GetPage "page" ($thePage.Dir) ($thePage.Param `resImgRelPath`) "index.md" }} */}} - {{- $myResourcePage := $thePage.Site.GetPage (printf "%s/%s/index.md" ($thePage.Dir) ($thePage.Param `resImgRelPath`) ) }} + {{- $myResourcePage := $thePage.Site.GetPage "page" (printf "%s/%s/index.md" ($thePage.Dir) ($thePage.Param `resImgRelPath`) ) }} {{- if $myResourcePage }} {{ $thePage.Scratch.Set `myResImg` ( ( ($myResourcePage.Resources.ByType `image`).GetMatch ($theResImg)) | default ($thePage.Scratch.Get `myResImg`) ) }} {{- end }} {{/* if $myResourcePage */}} |