From 06c99c96e25a932e2190586cbc8f8ccf2f09da06 Mon Sep 17 00:00:00 2001 From: Ivan Boothe Date: Tue, 10 May 2022 16:48:06 -0700 Subject: correct path for theme images Signed-off-by: Ivan Boothe --- layouts/_default/single.html | 2 +- layouts/partials/image.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2cfeca6..2935179 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,7 @@ {{- partial "post-meta" . }} {{- with .Params.featureImage -}}
- {{- partial "image" (dict "file" . "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }} + {{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
{{- end -}} {{ if $p.toc }} diff --git a/layouts/partials/image.html b/layouts/partials/image.html index 62d4d6d..2f7b4ef 100644 --- a/layouts/partials/image.html +++ b/layouts/partials/image.html @@ -41,7 +41,7 @@ {{- end -}} {{- else -}} {{- $scratch.Add "classes" " image_internal" -}} - {{ $file = (path.Join "/" $file) }} + {{ $file = (path.Clean $file) }} {{- if eq $bundle true -}} {{ $image = .Resources.GetMatch $file }} {{- end -}} -- cgit v1.2.3