aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/gallery-walk.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-24 03:36:33 -0400
committertdro <tdro@noreply.example.com>2022-06-24 03:36:33 -0400
commitd8835677c49292d9186003df777ece0670ba742e (patch)
tree340cc61d2cddf0c349e970cfa68ed6b7fd0948b3 /themes/default/layouts/partials/gallery-walk.html
parentf140c37f83753d620bdf3499843e3d11ca4a131d (diff)
downloadcanory-d8835677c49292d9186003df777ece0670ba742e.tar.gz
canory-d8835677c49292d9186003df777ece0670ba742e.tar.bz2
canory-d8835677c49292d9186003df777ece0670ba742e.zip
themes/default: static/images -> data/media
Add media path. Translate static images to data media.
Diffstat (limited to 'themes/default/layouts/partials/gallery-walk.html')
-rw-r--r--themes/default/layouts/partials/gallery-walk.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/gallery-walk.html b/themes/default/layouts/partials/gallery-walk.html
index e92bf9f..392e336 100644
--- a/themes/default/layouts/partials/gallery-walk.html
+++ b/themes/default/layouts/partials/gallery-walk.html
@@ -26,7 +26,7 @@
(eq $extension ".webp")
}}
{{- with $image := resources.Get $path -}}
- {{- $imageContent := (.Content | resources.FromString (print "/data/static/images/" ($image | urlize))).Fit $dimensions }}
+ {{- $imageContent := (.Content | resources.FromString (print (partial "function-paths-media.html") "/gallery-walker_" (path.Base .))).Fit $dimensions }}
<img
alt="{{- .Name }}"
title="{{- .Name }}"