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

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <grossnik@tuvok>2018-07-25 12:52:56 +0300
committerit-gro <grossnik@tuvok>2018-07-25 12:52:56 +0300
commit03345f9b1cea6f348d7f9fad7c6464e089b94f13 (patch)
treefaf6308c0c07f3c758c678704140a6ca18b0259c
parent931924a2dc6435b92e56103d867eea38f57a264a (diff)
wip
-rw-r--r--layouts/partials/resource.image.html2
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 */}}